【问题标题】:Instagram relationship endpoint that modify the relationship with target user修改与目标用户关系的 Instagram 关系端点
【发布时间】:2017-12-05 13:52:09
【问题描述】:

我正在开发一个使用 instagram API 的应用程序,当我尝试使用 POST 方法以编程方式关注另一个用户或对其执行其他操作时

https://api.instagram.com/v1/users/{user-id}/relationship?access_token=ACCESS-TOKEN

回应是

This action is invalid. Please supply a valid action from the following: follow, unfollow, approve, ignore, block, unblock

附注:

  • 其他用户已经添加到沙盒模式

  • 使用的范围是:[.basic,.followerList,.publicContent,.relationships] 并且访问令牌和用户 ID 经过测试且有效

  • 我正在使用这个库 https://github.com/AnderGoig/SwiftInstagram 来避免处理 http 请求,并且这个库使用 post 方法正确添加了带有“follow”的操作参数

【问题讨论】:

    标签: ios rest instagram-api


    【解决方案1】:

    如果有人遇到问题,解决方案是在正文中发送动作参数而不是在 url 中,我正在使用我说的库,所以我认为没关系,但是当使用邮递员测试它并在正文中发送参数时它按预期返回结果

    【讨论】:

      猜你喜欢
      • 2018-05-18
      • 1970-01-01
      • 1970-01-01
      • 2015-11-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-10-07
      相关资源
      最近更新 更多