Hi everyone, I am not so familiar with API and i'm integrating payment gateway "Omise" in my web site using their API. The problem is when i use their API "https://api.omise.co/charges" and send the values like this "https://api.omise.co/charges?{key}:&amount={Amount}¤cy=sgd&card={Token}".
Then i get the 401 Unauthorized error. In their website they show sample on how to send values.
I don't know how to send these values in api link. Here is my full screen shot.
Any suggestion?
With regards.
Hope you are passing the key and token for this correctly. Those would be used for authorization I guess.
Tushar Panpaliya wrote:
Yes, i have valid key and token but i'm not sure passing format is correct or not.
Phone wrote:
did you try using the test option to try different combinations ? additionally you can try something like postman to test API calls.
Hi,
Simulate the above CURL into Postman request & then you can easily identify how to prepare the request.
Ref: https://stackoverflow.com/questions/27957943/simulate-a-specific-curl-in-postman
Hope it helps,
Assif
assif_tiger wrote:
Hi assif_tiger, what should i put in username and password?
Thank you,
Can you find the answer for the above issue?. please share here
Hi Venkatesh,
This is an old post, with a very specific question. Of you have a similar question, please start a new topic, thanks.