Post

0 followers Follow
0
Avatar

API Search contact by date join OAP?

IT User

Hi and good day,

I'm trying to search contacts with date, I  want to filter the result and show contact from date of June 1,2015 up to the current date today. I'm trying with the codes below but it is not working or it just show one result only.  NOTE I'm still using OAP api address due to the our old account still in OAP setup.

<search><equation><field>Date Added</field><op>h</op><value>June 1, 2015</value></equation></search>

or

<search><equation><field>Date Added</field><op>h</op><value>[UNIX DATE VALUE]</value></equation></search>

Thanks

 

Answered

Official comment

Avatar

Hi IT User -

We don't provide support through the forums for custom coding topics, but you can submit your question to our Support team at support@ontraport.com. Here's the information they need in the email to escalate it to our developers:

1. What is the API script intended to do?

2. Please provide screenshots or the text of any errors you’re receiving.

3. We need the full request string or URL that you are using with example data filled in.
You can obtain this in three different ways. We recommend the third:
- By echoing out the variables when running the script then giving us the result or print out.
- By grabbing the URL from terminal (through Browser Network Tools)
- By using http://requestb.in/ To use this option which we recommend over the others, do the following: (1) Generate a URL at http://requestb.in/. An example can be found herehttp://i.imgur.com/CBtBTQA.png. (2) Replace the URL in your API script. Here are examples of before:  http://i.imgur.com/OMLdid6.png and after: http://i.imgur.com/32TU7lt.png. (3) Run the script. And (4), send us the “inspect link.” To do this final step, add **?inspect** to the end of the generated URL. This is an example of what this will look like: http://requestb.in/10878kg1?inspect

4. A copy of the full API script. This information is not essential like 1-3 but may be needed depending on the issue.


**Note:** For 3 and 4 we recommend that you create a document on pastebin.com and provide us with that instead of a file. This will format the script in a way that will help us troubleshoot! If you choose not to use pastebin.com, please send us the full request string and full API script as a .txt document.

Frank Hagan
Comment actions Permalink

Please to leave a comment.

1 comment