【发布时间】: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