GithubHelp home page GithubHelp logo

emarsys-postman-collection's People

Contributors

cmlewis avatar dwolter-emarsys avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

emarsys-postman-collection's Issues

Need an example for new function"Fetch contacts in a contact list"

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.