0
我使用Codeigniter库(https://github.com/samwierema/google-plus-api-codeigniter),我可以获取用户的登录凭据并将GooglePlusID和所有访问令牌存储在数据库中。Google+ API - 使用PHP发布片刻
我的问题是,我很难在Google+上“发布一段时间”,我仔细查看了代码,并怀疑它很旧,可能没有选择。
我目前正在
$google_plus_id = '';
$this->googleplus->people->insert($google_plus_id, 'vault', 'This is a test from my platform');
我有看“THIRD_PARTY”文件夹,似乎无法找到瞬间投寄一提。
我想知道是否有人使用过图书馆,并可能指出我正确的方向得到这张贴/工作。
感谢
你有一些问题与您的代码。假设图书馆仍然有效。 '$ this-> googleplus-> people'用于与人互动,您应该使用'$ this-> googleplus-> moments'。 'me'是'$ google_plus_id'唯一支持的值。 [documentation specified](https://developers.google.com/+/api/latest/moments/insert)您应该传递一个具有多个值的对象,而不是一个字符串。 – abraham 2014-09-03 17:04:35