hunter v0.3.0 Hunter.Application
Application entity
This module defines a Hunter.Application
struct and the main functions
for working with Applications.
Fields
id
- identifierclient_id
- client idclient_secret
- client secret
Summary
Functions
Register a new OAuth client app on the target instance
Types
Functions
create_app(conn, name, redirect_uri \\ "urn:ietf:wg:oauth:2.0:oob", scopes \\ "read", website \\ nil)
create_app(Hunter.Client.t, String.t, URI.t, String.t, String.t) :: Hunter.Application.t
Register a new OAuth client app on the target instance
Parameters
conn
- connection credentialsname
- name of your applicationredirect_uri
- where the user should be redirected after authorization, default:urn:ietf:wg:oauth:2.0:oob
(no redirect)scopes
- scope list, see the scope section for more details, default:read
website
- URL to the homepage of your app, default:nil
Scopes
read
- read datawrite
- post statuses and upload media for statusesfollow
- follow, unfollow, block, unblock
Multiple scopes can be requested during the authorization phase with the scope
query param