Hello im back again now I have learned how to follow a channel using json
alias followchan {
var %json followput
JSONOpen -duw %json https://api.twitch.tv/kraken/users/ $+ $lower($me) $+ /follows/channels/ $+ $lower($1)
JSONUrlMethod %json PUT
JSONUrlHeader %json Connection close
JSONUrlHeader %json Accept application/vnd.twitchtv.v3+json
JSONUrlHeader %json Authorization OAuth oauth
JSONUrlGet %json
}
This works but I want to use the same code to invite users to my group chat using the api above so I have tried this code,
alias inviteuser {
var %json invitepost
JSONOpen -duw %json JSONOpen -duw %json https://chatdepot.twitch.tv/room_memberships?irc_channel=_Random__Channel_123456789&username= $+ $lower($1)
JSONUrlMethod %json POST
JSONUrlHeader %json Connection close
JSONUrlHeader %json Accept application/vnd.twitchtv.v3+json
JSONUrlHeader %json Authorization OAuth oauth
JSONUrlGet %json
}
But that does not work, I have the required all the scopes in my oauth so that should not be a problem.
Is there something im missing out on?