
Nick Hustak - 2014-06-06 11:29:24 -
In reply to message 12 from Manuel Lemos
I have solved one of the two device problems.
They required the access token in the header to have a key of 'access_token' without the word 'bearer'.
Right now, your class sends 'Authorization: bearer [key]'.
I had to send 'access_token: [key]'.
I did not see a way in the current api to accomplish this so I modified the callAPI to have a way to send arbitrary headers as an additional parameter.
The second one requires a much more extensive set of header keys. I do not see how the content-type change alone can handle this.
I would recommend modifying all calls to have a way to send arbitrary headers.
Regards,
Nick