Forum Discussion
TariqHussain
8 years agoBoss
khill- You are passing all the parameters as header. However, as mentioned in a doc here, You should pass the client id in header, and all other parameters along with client-id as request body.
Example Code below
LJdishd:~ joan.doe$ curl -X POST -H "Content-Type: application/json" -H "client-id: Fblkh30GinF48502kEsk4FmGslkjdfjasdj=" -d '{"client_id" :"Fblkh30GinF48502kEsk4FmGslkjdfjasdj=", "client_secret" :"FKDDASDK309slkdfaDkdlkjie92=","grant_type" : "authorization_code", "redirect_uri" :"http://redirect.example_community.com/getaccessToken", "code":"i7liaoFaOjG6yDKN4tQYXrhewKog3k4ryYGWLS6hbrI="}' "https://api.lithium.com/auth/v1/accessToken"
khill
8 years agoMentor
Thanks Tariq so much for your help! I was definitely not passing those parameters in the right place.
Unfortunately, after that adjustment I am still receiving the 505 server error so I must be doing something else wrong. Sent in a service request to Lithium in hopes they can help me troubleshoot with my actual community keys and URLs. Unless, of course, you have any other ideas :)
Thank you again for your help!!