connected-car-node-sdk
connected-car-node-sdk copied to clipboard
Status is returning forbidden
When calling status on a vehicle, a 403/forbidden response is being returned from Ford.
A simple example:
import connectedcar from 'connected-car';
const client = connectedcar.AuthClient('9fb503e0-715b-47e8-adfd-ad4b7770f73b');
const token = await client.getAccessTokenFromCredentials({
username: '*****',
password: '****',
});
const refreshToken = await client.getAccessTokenFromRefreshToken(token.getRefreshToken());
const user = connectedcar.User(token.getValue());
const vehicles = await user.vehicles();
const vehicleList = []; // Array of vehicles
for (let userVehicle of vehicles) // For each user vehicle
vehicleList.push(userVehicle['VIN']);
let currentVehicle = connectedcar.Vehicle(vehicleList[0], token.getValue());
console.log(currentVehicle);
const status = await currentVehicle.status();
console.log(status);
Ford is using a new API and is blocking requests to the old API this project is using. Fortunately, it can be fixed.
how can it be fixed @brandon-grant
is there any js package that implements the new API?
Hi all,
Working on getting this updated.
In looking around a bit, it appears that Ford is changing their FordPass application in favor of their new publicly facing api that will be released at some point in the future. I'll see what I can do to get this library patched up in the meantime.
In looking around a bit, it appears that Ford is changing their FordPass application in favor of their new publicly facing api that will be released at some point in the future. I'll see what I can do to get this library patched up in the meantime.
I've attached a down and dirty solution I put together for myself. OAuth2Client.txt
In looking around a bit, it appears that Ford is changing their FordPass application in favor of their new publicly facing api that will be released at some point in the future. I'll see what I can do to get this library patched up in the meantime.
I've attached a down and dirty solution I put together for myself. OAuth2Client.txt
Thanks Brandon. That should help speed things up a bit.
@brandon-grant thank you very much!! Can you share a piece of (sample) code on to start the car, for example, with your OauthClient code that you shared?
any update on this one? been following this for a while...