2014-12-30 56 views
0

現在,我使用的是庫Java庫:如何通過api發佈LinkedIn上的狀態更新?

<dependency> 
<groupId>com.googlecode.linkedin-j</groupId> 
<artifactId>linkedin-j-core</artifactId> 
<version>1.0.429</version> 
</dependency> 

但這不工作了。我的圖書館使用過時的API:

/v1/people/~/current-status 

,每當運行它拋出異常如下:

Exception in thread "main" com.google.code.linkedinapi.client.LinkedInApiClientException: Unsupported PUT target {/v1/people/~/current-status} 

所以我查找了在LinkedIn的文檔新的更新,但無法找到相應的文件對於發佈用戶當前配置文件狀態...

https://developer.linkedin.com/documents/profile-api

已停止工作電流代碼類似於如下ü sing LinkedInJ:

LinkedInApiClientFactory factory = LinkedInApiClientFactory.newInstance(getApiKey(), getSecretApiKey()); 
LinkedInAccessToken accessToken = new LinkedInAccessToken(promotion.getAccessToken(), promotion.getSecretAccessToken()); 
LinkedInApiClient client = factory.createLinkedInApiClient(accessToken); 
client.updateCurrentStatus("my status message"); 

如何通過api發佈LinkedIn上的狀態更新?

+1

這個問題似乎是無關緊要的,因爲這是一個客戶支持請求,而不是一個關於編程問題的問題。請參閱[此meta post](http://meta.stackoverflow.com/questions/255745/why-were-not-customer-suppo rt-for-favorite-company)以獲取更多信息。 – Ffisegydd

+0

其實,我已經收回了我的簡歷,所以上面的評論是無效的(IMO)。 – Ffisegydd

回答

0

閱讀您自己的問題。

我的圖書館使用過時的API:

棄用意味着不再受支持,這是併發與您收到錯誤消息:

不支持將目標{/ v1/people /〜/ current-status}

這意味着您正在使用的已棄用的lib有一個函數updateCurrentStatus,但在請求的API端點下不支持PUT動詞。

相關問題