【发布时间】:2014-09-03 15:00:04
【问题描述】:
我正在使用 Codeigniter 库 (https://github.com/samwierema/google-plus-api-codeigniter),我可以获得用户的登录凭据,并将 GooglePlusID 和所有访问令牌存储在数据库中。
我的问题是我很难在 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 specifies 你应该传递一个具有多个值的对象,而不是一个字符串。
标签: php codeigniter google-api google-plus