GET https://:account.api-us1.com/api/3/contacts
- cURL
curl --request GET \
--url https:///:account.api-us1.com/api/3/contacts
- Node
var request = require("request");
var options = { method: 'GET',
url: 'https:///:account.api-us1.com/api/3/contacts' };
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
- Ruby
require 'uri'
require 'net/http'
url = URI("https:///:account.api-us1.com/api/3/contacts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body
- JavaScript
var data = JSON.stringify(false);
var xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener("readystatechange", function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open("GET", "https:///:account.api-us1.com/api/3/contacts");
xhr.send(data);
- Python
import requests
url = "https:///:account.api-us1.com/api/3/contacts"
response = requests.request("GET", url)
print(response.text)
QUERY PARAMS
ids
string Filter contacts by ID. Can be repeated for multiple IDs. Example: ids[]=1&ids[]=2&ids[]=42
datetime
date Contacts created on the specified date
email
string Email address of the contact you want to get
email_like
string Filter contacts that contain the given value in the email address
exclude
int32 Exclude from the response the contact with the given ID
fields
string Array of fields and values to filter by. You can filter using personalization tags or tag IDs. E.g. filters[fields][12]=value
formid
int32 Filter contacts associated with the given form
id_greater
int32 Only include contacts with an ID greater than the given ID
id_less
int32 Only include contacts with an ID less than the given ID
listid
string Filter contacts associated with the given list
organization
int32 Filter contacts associated with the given organization ID
search
string Filter contacts that match the given value in the contact names, organization, phone or email
segmentid
int32 Return only contacts that match a list segment
seriesid
int32 Filter contacts associated with the given automation
status
int32 See available values
tagid
int32 Filter contacts associated with the given tag
filters[created_before]
date Filter contacts that were created prior to this date
filters[created_after]
date Filter contacts that were created after this date
filters[updated_before]
date Filter contacts that were updated before this date
filters[updated_after]
string Filter contacts that were updated after this date
waitid
int32 Filter by contacts in the wait queue of an automation block
orders[cdate]
string Order contacts by creation date
orders[email]
string Order contacts by email
orders[first_name]
string Order contacts by first name
orders[last_name]
string Order contacts by last name
orders[name]
string Order contacts by full name
orders[score]
string Order contacts by score
in_group_lists
string Set this to "true" in order to return only contacts that the current user has permissions to see.
Opmerkingen
0 opmerkingen
Artikel is gesloten voor opmerkingen.