generateAccountUrl static method

Future<String> generateAccountUrl(
  1. String integrationId,
  2. Request request, {
  3. Link? graphLink,
})

Implementation

static Future<String> generateAccountUrl(
    String integrationId, Request request,
    {Link? graphLink}) async {
  if (graphLink == null) graphLink = GraphLinkCreator.create(request);
  final req = GgenerateAccountLinkingUrl(
      (b) => b..vars.integrationId = integrationId);
  final res =
      await Repository.mutate(graphLink, req.operation, req.vars.toJson());

  return GgenerateAccountLinkingUrlData.fromJson(res.data!)!
      .generateAccountLinkingUrl
      .url;
}