Closed cynthiawang closed 10 years ago
Not sure your question is clear to me. I've tried modifying SubscribeMethodsTest.java in the following way:
private ListMembersResult listMembers(MemberStatus status) throws Exception {
ListMembersMethod request = new ListMembersMethod();
request.apikey = apiKey;
request.id = listId;
request.status = status;
request.since = new Date(System.currentTimeMillis()-10000); // This line was added
...
}
The modified test passed and the following parameter was added to the 'listMembers' method request:
"since":"2014-01-03 12:51:50"
Then I changed the modified line to
request.since = new Date(System.currentTimeMillis()+10000); // This line was added
and the test expectedly failed (because the 'since' date was in the future).
Could you clarify the problem please?
Thanks so much for your quick response and detailed example. All is working fine for me now. Happy New Year!
I've tried to call ListMembersMethod.java with parameter Date since (I've tried a few different date format already, e.g: eg "2013-12-30 20:30:00"), however it doesn't retrieve records properly, would you please provide an example of it like the method listMembers in SubscribeMethodsTest.java?
Thanks in advance.