修改与目标用户关系的 Instagram 关系端点
Instagram relationship endpoint that modify the relationship with target user
我正在开发一个使用 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
P.S:
其他用户已经添加到沙盒模式
使用的范围是:[.basic,.followerList,.publicContent,.relationships] 并且访问令牌和用户 ID 已经过测试并且有效
我正在使用这个库 https://github.com/AnderGoig/SwiftInstagram 来避免处理 http 请求,并且这个库使用 post 方法 [=13] 正确地添加了带有 'follow' 的动作参数=]
如果有人遇到问题,解决方案是在正文中而不是在 url 中发送操作参数,我正在使用我所说的库,所以我认为没问题,但是当用邮递员测试它时并在正文中发送参数 returns 预期的结果
我正在开发一个使用 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
P.S:
其他用户已经添加到沙盒模式
使用的范围是:[.basic,.followerList,.publicContent,.relationships] 并且访问令牌和用户 ID 已经过测试并且有效
我正在使用这个库 https://github.com/AnderGoig/SwiftInstagram 来避免处理 http 请求,并且这个库使用 post 方法 [=13] 正确地添加了带有 'follow' 的动作参数=]
如果有人遇到问题,解决方案是在正文中而不是在 url 中发送操作参数,我正在使用我所说的库,所以我认为没问题,但是当用邮递员测试它时并在正文中发送参数 returns 预期的结果