getPagesProjectSubdomain method

Future<String?> getPagesProjectSubdomain(
  1. String accountId,
  2. String project
)

Returns the *.pages.dev subdomain of the Pages project project.

GET /accounts/{account_id}/pages/projects/{project}

Pagesプロジェクトprojectの*.pages.devサブドメインを返します。

Implementation

Future<String?> getPagesProjectSubdomain(
  String accountId,
  String project,
) async {
  final result = await _result(
    "GET",
    "accounts/${_encode(accountId)}/pages/projects/${_encode(project)}",
    operation: "get Pages project `$project`",
  );
  final subdomain = result is Map ? result["subdomain"] : null;
  return subdomain is String && subdomain.isNotEmpty ? subdomain : null;
}