getBusinessProfile method

Future<Request> getBusinessProfile(
  1. List<String>? scope
)

Implementation

Future<Request> getBusinessProfile(List<String>? scope) async {
  final Map<String, String> headers = {
    'Authorization': 'Bearer $accessToken',
  };

  String fields =
      'about,address,description,email,profile_picture_url,websites,vertical';
  if (scope != null) {
    fields = scope.join(',');
  }
  await request.get(
      '$fromNumberId/whatsapp_business_profile?fields=$fields', headers);
  return request;
}