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

  • 0
  • 1
  • Question
  • Updated 6 months ago
  • Answered
Archived and Closed

This conversation is no longer open for comments or replies and is no longer visible to community members. The community moderator provided the following reason for archiving: EOL CLEANUP

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

  • 2 Posts
  • 0 Reply Likes

Posted 7 months 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

  • 41 Posts
  • 5 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.