emarsys-us / emarsys-postman-collection Goto Github PK
View Code? Open in Web Editor NEWInternal update of Emarsys Postman collection
Internal update of Emarsys Postman collection
End-point "Get Contact Data in a Contact List" and some others have been recently marked as deprecated https://dev.emarsys.com/docs/core-api-reference/y5scc570znu3b-get-contact-data-in-a-contact-list
There are no working examples for the new end-point "Fetch contacts in a contact list ":
https://dev.emarsys.com/docs/core-api-reference/20nck8oujcus8-fetch-contacts-in-a-contact-list
GET https://api.emarsys.net/api/v2/contactlist/{contactlistId}/contactIds
Accept: application/json
Content-Type: application/json
X-WSSE: UsernameToken Username="xxx", PasswordDigest=yyy", Nonce="zzz", Created="2024-03-22T16:11:24Z"
Tried to make it work with segment list scenario, but always get Error 403 (Forbidden).
Documentation doesn't help either. Mock server responds with
"message": "Request path must have required property 'listid'"
whenever contactlistId
is provided or not.
E.g.
HTTP/1.1 422 Unprocessable Entity
Date: Fri, 22 Mar 2024 17:08:12 GMT
Content-Type: application/json; charset=utf-8
Content-Length: 526
Connection: close
CF-Ray: 8687c848ded544bb-SIN
CF-Cache-Status: DYNAMIC
Via: 1.1 google
access-control-allow-headers: *
access-control-allow-methods: GET,POST,PUT,PATCH,DELETE,HEAD,OPTIONS,TRACE
alt-svc: h3=":443"; ma=86400
Vary: Accept-Encoding
Server: cloudflare
{
"name": "https://stoplight.io/prism/errors#UNPROCESSABLE_ENTITY",
"status": 422,
"detail": "Your request is not valid and no HTTP validation response was found in the spec, so Prism is generating this error for you.",
"additional": {
"validation": [
{
"location": [
"path"
],
"severity": "Error",
"code": "required",
"message": "Request path must have required property 'listid'"
}
],
"workspaceSlug": "emarsys-sap",
"projectSlug": "core-api-reference",
"url": "/v2/contactlist/1/contactIds",
"code": 200,
"dynamic": true,
"mediaTypes": [
"application/json"
]
}
}
Btw, sample request in documentation doesn't set listid in the path properly. Here is an example (contactlistiId is not replaced with an id):
curl --request GET \
--url https://api.emarsys.net/api/v2/contactlist/contactlistId/contactIds \
--header 'Accept: application/json'
Old end-point works without issues
GET https://api.emarsys.net/api/v2/contactlist/{contactlistId}/contacts/data
Accept: application/json
Content-Type: application/json
X-WSSE: UsernameToken Username="xxx", PasswordDigest=yyy", Nonce="zzz", Created="2024-03-22T16:11:24Z"
it even works if the path is not complete (removed some characters at the end):
GET https://api.emarsys.net/api/v2/contactlist/{contactlistId}/contacts/dat
Then it responds with a list of ids.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.