twitchdev / issues

Issue tracker for third party developers.
Apache License 2.0
73 stars 6 forks source link

Sending Whispers - Example #990

Closed BarryCarlyon closed 2 months ago

BarryCarlyon commented 2 months ago

Brief description

has a malformed URL due to ?message= on the end

The request will be sent similar to the following:

curl -X POST 'https://api.twitch.tv/helix/whispers?from_user_id=12826&to_user_id=141981764?message=Hello%20friend%21' \
-H 'Authorization: Bearer ln6n5azzuliqq57gmncybxrno4fy' \
-H 'Client-Id: hof5gwx0su6onys0nyan9c87zr6t'
-d '{"message":"Hello, friend!"}'

Expected documentation

The request will be sent similar to the following:

curl -X POST 'https://api.twitch.tv/helix/whispers?from_user_id=12826&to_user_id=141981764' \
-H 'Authorization: Bearer ln6n5azzuliqq57gmncybxrno4fy' \
-H 'Client-Id: hof5gwx0su6onys0nyan9c87zr6t'
-d '{"message":"Hello, friend!"}'
Xemdo commented 2 months ago

Fixed