Page 1 of 1

BlipADeal API REST Service

Posted: Wed Aug 22, 2012 7:16 pm
by Melissa Jeffries

I have created a REST service for the BlipADeal Keyword search API (http://www.blipadeal.com/development....) and I keep getting errors. How do I set it up properly? Currently I have the following

URL: https://webapi.blipadeal.com/api_keyw...?
Method: get
Data Type: json

Request Parameters:

api_key_token
api_secret_token
keyword_list
country
city
sort_method

When I test the connection it says:

Test successful and the following response:

{
"Exception": "'message_status'",
"message_status": "SUCCESS",
"message_action": "SEARCH_KEYWORD_FAILED"
}

However, when I test the same keyword using the console on their website, the keyword I am using produces results


BlipADeal API REST Service

Posted: Wed Aug 22, 2012 8:01 pm
by maxkatz

Looking at their example:

code
var uri_string = 'https://webapi.blipadeal.com/api_keyword_search?request=' +
JSON.stringify( request_JSON );
/code

the request parameters are sent as string but in JSON format. You would need to create one request parameter named 'request' and set its value to the a JSON string that contains all the parameters.


BlipADeal API REST Service

Posted: Thu Aug 23, 2012 12:32 am
by Sidnei

Hi Melissa,

This is sid here from the BlipADeal Team. From your error i can see that you have not included the message_status name ... I can see you are invoking it from the full URI method. The format your looking for is

precode
/api_keyword_search_url?message_status=SUCCESS&api_key_token={api_key_token}&api_secret_token={api_secret_token}&city={param_city}&country={param_country}&keyword_list={param_keyword_list}&sort_method={param_sort_method}&callback={callback}
/code/pre

See the first part, It seems you are missing it where it says "message_status=SUCCESS" You have added everything else but missed that part.

Hope that helps, let me know if you are having any more problems. Try this

http://webapi.blipadeal.com/api_keywo... your token]&api_secret_token=[add your secret]&city=SYDNEY&country=AUSTRALIA&keyword_list=["holiday"]&sort_method=bought

If you do this it should work, i just tried it with your token with no problems. However if you still have problems, please send me an email to support (at) blipadeal [dot] com and i can help you out with some sample code based on your client to get you started if need be. However just give the link above a go with the key and secret that was provided earlier :)


BlipADeal API REST Service

Posted: Fri Aug 24, 2012 4:39 am
by Melissa Jeffries

Thanks for the help. After I added the message_key=SUCCESS, I was still getting a keyword failed error message. The key was that the keyword has to be wrapped in quotation marks. It works as long as I have quotes around the keyword. Thanks.