大家好,我反复收到此错误。请帮忙。
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<error>
<status>403</status>
<timestamp>1380768861652</timestamp>
<request-id>QDGIGCTHXW</request-id>
<error-code>0</error-code>
<message>Access to posting messages denied.</message>
</error>
虽然我已经发送了正确的请求,但我无法发送邮件。我的代码如下:
我也设置为:
但它没有帮助。谁可以帮我这个事。
String linkedinurl = "http://api.linkedin.com/v1/people/~/mailbox";
OAuthRequest orequest = new OAuthRequest(Verb.POST, linkedinurl);
OAuthService LINKEDIN_SERVICE = new ServiceBuilder()
.provider(LinkedInApi.class).apiKey(LINKEDIN_APP_ID)
.apiSecret(LINKEDIN_APP_SECRET).scope("w_messages").build();
orequest.addHeader("Content-Type", "text/xml"); and
orequest.addPayload(xmlBody);
LINKEDIN_SERVICE.signRequest(accessToken, orequest);
谢谢