-
-
Notifications
You must be signed in to change notification settings - Fork 60
Has the key/secret been removed from the v2.0 iRemote app? #43
Comments
it must be in there somewhere, as OAuth token endpoint requires client_id and secret to work. I however fetched the APK and decompiled it. |
Any keywords i should be grepping for? |
Hi. I'm also struggling here. I've worked with the BMW Remote app cause I suppose the API is the same for PHEV and not-PHEV vehicles. Can anybody at least confirm that the API is still accesible? Regards. |
Currently the API is still accessible... |
I used to have this working but now it doesn't seem like the API will give me a token anymore.
Gets me:
|
Since the old App has been deprecated, it seems the old api is also gone. You can use the calls BMW uses for there Connected Drive website: to get a token make a post Request to https://customer.bmwgroup.com/gcdm/oauth/authenticate with data: client_id=dbf0a542-ebd1-4ff0-a9a7-55172fbfce35&redirect_uri=https://www.bmw-connecteddrive.com/app/default/static/external-dispatch.html&username=YOURUSER&response_type=token&state=FOOBAR&scope=authenticate_user+fupo&locale=en-en&password=YOURPASSWORD You will get a redirect URL to https://www.bmw-connecteddrive.com/app/default/static/external-dispatch.html but with &access_token=HORRAYTHISISMYTOKEN attached .. This is your Token ... To Fetch Verhicle Data call https://www.bmw-connecteddrive.de/api/vehicle/dynamic/v1/YOURVIN?offset=-60 For more Infos just take a look at the BMW Connected Drive Website with a WebInspector of your choice ... Have fun ... |
@thkl where are you getting the client_id and what should state be? I'm getting a 500 error with this:
|
I‘ve fetched the clientID from the Connected Drive Website. This Id hasn’t changed since months... The state is a various ID of your choice. The Login is a normal oauth login procedure, so the response from the login post also includes this id. As mentioned in my post above, just grab Chrome‘s Webinspector, make a login in to the ConnectedDrive Website and there are all informations you need. 😎 |
Quick guess: change the + into a space at the scope parameter. My example was html encoded 🤓 |
Hi. |
I'm still not able to get this working. Can you show me a curl example? |
oh i do not use curl (ios ;o) but here is a http request dump :
will end up in :
the state parameter is a random uuid |
I've been looking into this and have no idea where to get the client_id. I live in the US so from what I've read, its not on the website. I've transferred the i3 remote app and decompiled the app, but have no idea where to start looking. Any help is appreciated. Would love to get Siri working to activate air conditioning. |
I have managed to get a token via a POST request via curl:
In the response you'll find the token in Location-parameter |
I put in my username and password and tried doing this in terminal on my Mac and it just hangs. Not sure if I am doing something wrong |
Works like a charm on my Mac; I don't know what you are doing wrong, sorry. |
okay, rebooted and tried again and I got it to work, but now I get.... Location: https://www.bmw-connecteddrive.com/app/default/static/external-dispatch.html?error=access_denied |
Seems like an Authentication error as mentioned by the access denied parameter .... |
Do you think its country specific? I'm in the US here. |
maybe.. you should try a normal browser (with google chrome) login and inspect all the calls by the google chrome web inspector. |
I don't know if this will be useful to you guys, but I wrote this. I have it running via cron on a digital ocean droplet so I get notifications when my car is charged (why the stupid connecteddrive app doesn't send a notification when the car is charged is beyond me!) |
Are all (or some?) of the GET/POST messages mentioned in the api-overview still valid via this method? EDIT: Found my answer here: |
It appears this no-longer works,.. the response returns with a Location parameter that has
|
@thkl & @ericlawton ConnectedDrive for US customers has an entirely different url when using this method. |
Any news on this? |
What kind of news are you looking for? If you want a working example checkout the git repo I posted earlier. Anyway, I don't have a BMW anymore so I'm going to drop out of this repo :) |
I'm getting this error:
It was working before I'am using the default client_id=dbf0a542-ebd1-4ff0-a9a7-55172fbfce35 |
I believe Toyota supra connect uses the same API as the old BMW connected app. Is there a way to use this Toyota API to control BMW cars |
I've been grepping around for a while now and can't seem to find the OAuth2 key/secret. Not in the plist from what I can tell either. Any pointers on where I should look? Or is it gone?
The text was updated successfully, but these errors were encountered: