How to GET request with URL parameter with a field "not equal to null" or "IS NOT NULL"

  • 0
  • 1
  • Question
  • Updated 1 week ago
  • Answered
https://api.e2ma.net/******8/mailings?month=2&reply_to!=null

How do I put the "Not equal" operator in a readable format for emma  API

- Jawahir
Photo of Jawahir AK

Jawahir AK

  • 1 Post
  • 0 Reply Likes

Posted 4 weeks ago

  • 0
  • 1
Photo of Kyle Gregory | Lipscomb University

Kyle Gregory | Lipscomb University, Champion

  • 99 Posts
  • 69 Reply Likes
Hey Jawahir AK,

I'm not aware of the ability to pass any parameter to an API endpoint. The only documented parameters for the /mailings endpoint are found here:
http://api.myemma.com/api/external/mailings.html#get--#account_id-mailings

If you want to find all the mailings that were in month 2 with a reply-to of null, then you'll need to query the API and filter the results in your application.

Hope that helps,
Kyle
Photo of Nate Gallagher

Nate Gallagher, Employee

  • 33 Posts
  • 3 Reply Likes
Thanks Kyle!
(Edited)
Photo of LexisNexis

LexisNexis

  • 20 Posts
  • 2 Reply Likes
Jawahir,
The best you can do is issue:
https://api.e2ma.net/******8/mailings?month=2

and then filter as Kyle recommends.