DMH
DMH

Reputation: 130

Linkedin Connection API didn't return new connections

I am using linked connection API in my application and trying to get newly added connection of authenticate user. But it always return all connections of authenticate user.

Here is my reference link:

http://developer.linkedin.com/documents/connections-api#

and API call is:

https://api.linkedin.com/v1/people/~/connections:(id)?oauth2_access_token=Auth_token&format=json&modified=new&modified-since=1385014447

It should return modified and new connection while its return all connections. Is there problem with my API Calls?

Upvotes: 2

Views: 299

Answers (2)

Muhammad Asif Mahmood
Muhammad Asif Mahmood

Reputation: 1710

Try in this way

$miliseconds= $sconds*100;

and send that miliseconds in query string

https://api.linkedin.com/v1/people/~/connections:(id)?oauth2_access_token=Auth_token&format=json&modified=new&modified-since=$miliseconds

Upvotes: 1

mwilson
mwilson

Reputation: 1285

The API requires milliseconds since epoch, not seconds. You're asking for all connections since 1/17/1970 12:43:34 AM. :)

Upvotes: 0

Related Questions