createClientSecretForCustomer method
Implementation
@override
Future<String> createClientSecretForCustomer(
String token, String customerId) async {
final baseUrl = await getBaseUrl;
var url = Uri.parse(
"$baseUrl/api/v1/pa/customers/$customerId/generate_client_secret");
var response = await http.get(
url,
headers: {"Authorization": "Bearer $token"},
);
var data = jsonDecode(response.body);
var clientSecret = data['client_secret'];
return clientSecret;
}