Skip to content
This repository has been archived by the owner on Apr 27, 2024. It is now read-only.

Apitest support http get #38

Merged
merged 8 commits into from
Aug 13, 2019

Conversation

Max104t
Copy link
Contributor

@Max104t Max104t commented Aug 11, 2019

In order to properly test support for groups, this refactor to the ApiTest section will allow v1 HTTP GET style calls..

Test get channels:

  • Get authorization_token with v2
    • func: authorizeToken
    • param: {"service":"channels"}
  • Get Channels with v1
headers: {
    "Authorization": "***", 
    "X-Periscope-User-Agent": "Periscope/2699 (iPhone; iOS 8.1.2; Scale/2.00)",
    "locale":"en"
}
  • run; you will get the broadcast channels

GET-API

@kewalsk
Copy link
Contributor

kewalsk commented Aug 12, 2019

Good, but other HTTP methods will be necessary also, not only GET.

@Max104t
Copy link
Contributor Author

Max104t commented Aug 12, 2019

I've added all of them.. but I only tested POST/GET

METHOD Description
GET The GET method requests a representation of the specified resource. Requests using GET should only retrieve data.
HEAD The HEAD method asks for a response identical to that of a GET request, but without the response body.
POST The POST method is used to submit an entity to the specified resource, often causing a change in state or side effects on the server.
PUT The PUT method replaces all current representations of the target resource with the request payload.
DELETE The DELETE method deletes the specified resource.
CONNECT The CONNECT method establishes a tunnel to the server identified by the target resource.
OPTIONS The OPTIONS method is used to describe the communication options for the target resource.
TRACE The TRACE method performs a message loop-back test along the path to the target resource.
PATCH The PATCH method is used to apply partial modifications to a resource.

@Max104t Max104t mentioned this pull request Aug 12, 2019
Copy link
Owner

@gitnew2018 gitnew2018 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Trying out review.

Periscope_Web_Client.user.js Show resolved Hide resolved
Periscope_Web_Client.user.js Outdated Show resolved Hide resolved
@gitnew2018 gitnew2018 merged commit 16afe87 into gitnew2018:master Aug 13, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants