分享 LinkedIn API
我正在研究 LinkedIn 共享 API,但遇到了一些问题。
我的代码:
public function shareAPI()
{
$datatopost ="<?xml version=1.0 encoding=UTF-8?><share><comment>hi</comment><content><title>Survey: Social networks top hiring tool - San Francisco Business Times</title><submitted-url>http://google.com</submitted-url><submitted-image-url></submitted-image-url></content>
<visibility><code>anyone</code></visibility></share>";
$this->_oauth_token_secret=$_SESSION[_oauth_token_secret];
$this->_oauth->fetch(BASE_API_URL.'/v1/people/~/shares',$datatopost,OAUTH_HTTP_METHOD_PUT);
}
当调用这个函数时,它不会将消息发送到墙上。 请帮忙。
I am working on LinkedIn share API, but I'm facing some problems.
My code:
public function shareAPI()
{
$datatopost ="<?xml version=1.0 encoding=UTF-8?><share><comment>hi</comment><content><title>Survey: Social networks top hiring tool - San Francisco Business Times</title><submitted-url>http://google.com</submitted-url><submitted-image-url></submitted-image-url></content>
<visibility><code>anyone</code></visibility></share>";
$this->_oauth_token_secret=$_SESSION[_oauth_token_secret];
$this->_oauth->fetch(BASE_API_URL.'/v1/people/~/shares',$datatopost,OAUTH_HTTP_METHOD_PUT);
}
When this function is called, it doesn't send the message to the wall.
Please help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你能说得更具体一些吗?问题是什么?
一个建议是只使用这段代码:
Could you be more specific? What is the problem?
One suggestion would be to just use this code: