account method

Future<Account> account(
  1. String id
)
inherited

Creates a user and account records. Returns an account access token for the app that initiated the request. The app should save this token for later, and should wait for the user to confirm their account by clicking a link in their email inbox.

GET /api/v1/accounts/:id

  • public
  • read read:accounts

Implementation

Future<Account> account(String id) async {
  final response = await request(
    Method.get,
    "/api/v1/accounts/$id",
  );

  return Account.fromJson(json.decode(response.body));
}