Unable to use Controller Rest Api with Bearer Token

(Andreiiz) #1

Hello i would like to use some Controller REST API, and i’m using the link here to try it out: https://iofog.org/docs/2/reference-controller/rest-api.html

I can get the the access token through the /user/login API, but then every time i try to use that token i get error like “Required field is not provided”. I tried even with Postman but i get
{ "name": "AuthenticationError", "message": "authorization failed" }

When i select the Authorization type Bearer Token. I think i’m missing something about syntax.


What language are you using? The node and python SDKs have a lot of helper methods on the iofog.client to make this easier.