createApplication abstract method
Create a new application to obtain OAuth2 credentials.
Parameters
-
clientName
: A name for your application. -
redirectUri
: Where the user should be redirected after authorization. In defaulturn:ietf:wg:oauth:2.0:oob
will be used. -
scopes
: List of scopes. If none is provided, defaults to read. -
websiteUrl
: A URL to the homepage of your app.
Endpoint Url
- GET /api/v1/apps HTTP/1.1
Authentication Methods
- Anonymous
Reference
Implementation
Future<MastodonResponse<RegisteredApplication>> createApplication({
required String clientName,
String redirectUri = 'urn:ietf:wg:oauth:2.0:oob',
List<Scope>? scopes,
String? websiteUrl,
});