Thank you for your interest in the eLocal Call Ping/Post API, we look forward to working with you. Attached is the full documentation for our API.
Our API server is available at:
api.elocal.com
Your API key is:
Below is an example of how to make a ping request. In this example, we are setting a zip code of 19428 and using your category id 2243.
curl -H 'Content-type: application/json' -d '{"ping": {"zip_code":"19428", "need_id": "2243", "key":"<em> <api key="" here=""></api> </em>" }}' https://api.elocal.com/call/ping
Upon execution, you will see a response like
{"response":{"status":"success","token":"xesef-lesek-hutaf-cinex","phone_number":"+15555555555","price":"20.0"}}
Next, is an example of making a complete request after you have sent a call to our phone number and the phone call completes. This request is used by eLocal to make sure that you receive credit for a call.
curl -H 'Content-type: application/json' -d '{"complete": {"ping_token":"xesef-lesek-hutaf-cinex", "call_start_time":"08/07/2014 17:23:45-0400", "call_duration": 35, "caller_phone_number": "+15555555555", "key":"YOUR_KEY_HERE" }}' \ https://api.elocal.com/call/complete
Upon execution, you will see a response like:
{"response":{"status":"success"}}
Please do not hesitate to let me know if you have any questions or problems.
Before we complete our integration, one thing we will need from you is the full set of need identifiers (e.g. what the lead is looking to buy). An eLocal representative will be responsible for mapping all of your identifiers to ours.
Once development is complete and we confirm leads are coming through correctly, we will turn on the ability to get real provider phone numbers.
I look forward to working with you.
Thomas Green
email: tom.green@elocal.com phone: 720-318-5445