REST API: always getting 404
Just playing with REST API and not successfull.
- Checked this: http://community.geminiplatform.com/docs/all/page/21/enabling-api-support/?tags=api
- Used jQuery to get JSON: http://community.geminiplatform.com/docs/all/page/54/authentication/?tags=api
- Checked if Base64 and MD5 is correctly build: http://community.geminiplatform.com/questions/3577/how-to-authenticate-with-gemini-web-services-not-using-net/?tags=api
...and still getting 404. I guess 404 means there is some problem on the server side, but I don't know what to check where to start. Do you have a complete, functional REST example to try it?
stepand76
· 504 |
|
Tuesday, December 11, 2012, 9:52:50 AM |
0
|
These are for Gemini 4. Are you on Gemini 5? What exactly are you trying to do? Is it all using jQuery? |
||||
|
0
|
Bellow is my code. Off course the password is not correct.
|
||||
|
0
|
jsonp is currently not supported, you will need to set headers (basic authentication). |
||||
|
0
|
I think it's not JSONP. See http://api.jquery.com/jQuery.getJSON/ JSONP If the URL includes the string "callback=?" (or similar, as defined by the server-side API), the request is treated as JSONP instead. See the discussion of the jsonp data type in $.ajax() for more details. However my code is based on sample from your API documentation. Isn't it? So it should work. Do you have a working example of REST API? Thanks. |
||||
|
0
|
Any news? |
||||
|
0
|
We are working on a jQuery sample, which should be there next week. What you need to do is set the headers for the call (authorization) |
||||
|
0
|
Thank you for info. I will wait for the example you are working on. |
||||
|
0
|
ANSWER
Below you will find a working example. Please make sure this code is run within Gemini.
|
||||
|
0
|
Thanks. It is working! |
||||
|