-
Notifications
You must be signed in to change notification settings - Fork 20
API_Key
At the current time it is believed that the API key is global through multiple community confirmations, this key is now baked into the plugin by default.
Currently the API key we believe to be is global is:
eyJhbGciOiJIUzI1NiJ9.eyJncmFudGVlIjoiYmx1ZWFpciIsImlhdCI6MTQ1MzEyNTYzMiwidmFsaWRpdHkiOi0xLCJqdGkiOiJkNmY3OGE0Yi1iMWNkLTRkZDgtOTA2Yi1kN2JkNzM0MTQ2NzQiLCJwZXJtaXNzaW9ucyI6WyJhbGwiXSwicXVvdGEiOi0xLCJyYXRlTGltaXQiOi0xfQ.CJsfWVzFKKDDA6rWdh-hjVVVE9S3d6Hu9BzXG9htWFw
Download Charles and launch it.
- Go to
Proxy -> Proxy Settings -> macOS
and disableEnable macOS proxy
. - Next go to
Proxy -> Proxy Settings -> SSL Proxying Settings
and checkEnable SSL Proxying
and add each of the following locations:- api.amplitude.com
- api-eu-west-01.foobot.io
- api.foobot.io
- blueair-settings.herokuapp.com
- *.blueair.io
On your mobile device add your computer's IP address and the port you chose for Charles proxy (by default 8888
).
On iOS, this can be found in Settings -> Wi-Fi -> [Network Name] (i) button -> HTTP Proxy -> Configure Proxy
- Set this to
Manual
- Set your computer's IP as the
Server
- Set the Charles proxy port (usually
8888
) asPort
- Open the BlueAir app
On your computer tell Charles to allow the connection from this device.
On iOS, log in to the BlueAir app.
Back on your computer look for a http://api.foobot.io
in the list and select one of the /
entries as below then click Contents
:
Your API key is the one labelled X-API-KEY-TOKEN
. TBD: This may actually be a globally shared API key between all BlueAir devices, however I would need someone else's API key to confirm this. At that stage I will add it to the code directly.