Menu
  • HOME
  • TAGS

OAuth call for a request token yields a 400 error

oauth-2.0,linkedin-j

You're adding the parameters to the token endpoint as query parameters in the URL but they should be passed in the POST parameters. You should use something like: DefaultHttpClient client = new DefaultHttpClient(); URI uri = new URIBuilder().setScheme("https") .setHost("www.linkedin.com") .setPath("/uas/oauth2/accessToken") .build(); List <NameValuePair> nvps = new ArrayList <NameValuePair>(); nvps.add(new BasicNameValuePair("grant_type",...

Processing pagination in LinkedIn API

java,pagination,linkedin,linkedin-j

If you would like to use pagination in linkedin-j, then you could use getNetworkUpdates(Set, int, int) along with network.getUpdates().getTotal(). public Network getNetworkUpdates(Set<NetworkUpdateType> updateTypes, int start, int count); ...