diff --git a/http-client.env.json b/http-client.env.json new file mode 100644 index 00000000..c1b28a1f --- /dev/null +++ b/http-client.env.json @@ -0,0 +1,19 @@ +{ + "dev": { + "name": "value", + "Security": { + "Auth": { + "auth-id": { + "Type": "OAuth2", + "Grant Type": "Authorization Code", + "Client ID": "{{client_id}}", + "Client Secret": "{{client_secret}}", + "Redirect URL": "https://example.com", + "Token URL": "http://{{host}}/oauth/token", + "Auth URL": "http://{{host}}/oauth/authorize", + "Scope": "write read" + } + } + } + } +} \ No newline at end of file diff --git a/mastodon-api.http b/mastodon-api.http new file mode 100644 index 00000000..608850f0 --- /dev/null +++ b/mastodon-api.http @@ -0,0 +1,14 @@ +POST http://{{host}}/api/v1/apps +Accept: application/json +Content-Type: application/json + +{ + "client_name": "test-client", + "redirect_uris": "https://example.com", + "scopes": "write read" +} + +### + +GET http://{{host}}/api/v1/accounts/verify_credentials +Authorization: Bearer {{$auth.token("auth-id")}} \ No newline at end of file