My Oracle Support Banner

Trying To Fetch Messages Through SRM REST API Using PostedAtStart And PostedAtEnd (Doc ID 2427252.1)

Last updated on AUGUST 01, 2018

Applies to:

Oracle Social Engagement and Monitoring Cloud Service - Version N/A and later
Information in this document applies to any platform.

Goal

Problem Description
---------------------------------------------------
We are trying to fetch messages through SRM REST API using postedAtStart and postedAtEnd
It seems "postedAtStart" has no effect. See the screenshot below.I encircled relevant lines.
Note, I gave "postedAtStart" and "postedAtEnd" as 2018-06-01 and 2018-06-02 respectively. But message contains "postedAt" as 2018-07-07.
So always starting from current date.
https://public-api.vitrue.com/engage/v1/messages?bundleId=00000&limit=200&postedAtEnd=2018-06-02&postedAtStart=2018-06-01 - (Equation1)
Your suggestion on "Next" link is working. But I am not understanding how it is filtering based on "postedAtStart" and "postedAtEnd" date.
e.g.
When I use the "next" tag like below, the next 200 messages comprise of dates from 2018-06-02 to 2018-06-28 though my range is between 2018-06-01 & 2018-06-02.So looks like postedAtEnd is not working.
https://public-api.vitrue.com/engage/v1/messages?bundleId=00000&limit=200&postedAtEnd=2018-06-02&postedAtStart=2018-06-01&toId=1530275123003000000000001231158090005543


 

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.