I just signed up for the Bulk SMS API and I created a sandbox app . Im trying to send a bulk message, but Im getting and error authenticating. Any help would be appreciated
$SessionUser = "147050xxxxxx"
$SessionPassword = "j7MW2smk6xxxxxxx"
$ClientID = "-ihX9Qf4RPmdxxxxxxxx"
$ClientSecret = "TVH242ElR8iVs4LSTVSRn6xxxxxxx"
$ClientCredsPlainText = $ClientID + ":" + $ClientSecret
$ClientCredsBase64 = [System.Convert]::ToBase64String(
[System.Text.Encoding]::UTF8.GetBytes($ClientCredsPlainText))
$AuthHeader = @{"Content-Type" = 'application/x-www-form-urlencoded'
"accept" = 'application/json'
"authorization" = "Basic $ClientCredsBase64" }
$AuthAPI = @{"endpoint" = 'https://platform.devtest.ringcentral.com/'
"url" = 'restapi/v1.0/account/~/a2p-sms/batches' }
$AuthBody = @{
"from" = '+14705025555';
"text" = 'Hello Team testing API, no need to reply';
"messages" = @{
"to" = '+18313595555' }
}