GoFax SMS Integrations to Powershell

SMS integration using Powershell

You can easily integrate GoFax SMS using Powershell using our RESTful API. 
Sample code: 

headers = New-Object "System.Collections.Generic.Dictionary[[String],[String]]"
$headers.Add("Content-Type", "application/json")
$smsRecipient = "04xxxxxxxx"
$smsFrom = "04xxxxxxxx"
$smsReplyTo = "example@email.com.au"
$smsBody = "This is a test message"
$userAccessToken = "11111-11111-11111-11111-111111111"
$gofaxUrl = "https://restful-api.gofax.com.au/v1//SMS/?token=" + $userAccessToken
$body = "{`"To`": [`"$smsRecipient`"],`"From`": `"$smsFrom`",`"ReplyTo`": `"$smsReplyTo`",`"Body`": `"$smsBody`"}"
$response = ""
$response = Invoke-RestMethod $gofaxUrl -Method 'PUT' -Headers $headers -Body $body
$response | ConvertTo-Json

>>>  Change the highlighted sections above as required   <<<

View full RESTful API or contact us for further assistance.  

    • Related Articles

    • Integration using the GoFax RESTful API

      Integrate all the functionality of a dedicated virtual fax or SMS platform into your software using our API. To integrate GoFax into your business applications:  Register with GoFax®. Sign up and apply GoFax send credits to your account or add ...
    • GoFax and ReferralNet Integration

      How do I integrate my GoFax account? In order to integrate your GoFax account to ReferralNet, you’ll need to provide ReferralNet with an API key which can be generated from within your GoFax account.   To view current API access and add new tokens: ...
    • API access tokens

      Our system features an application programming interface that allows programmers to code applications to communicate directly with our online fax / SMS system. Security is managed by access tokens, which allow encrypted connections between our system ...
    • Send SMS using mail merge

      To send a mail merge SMS broadcast, otherwise known as personalised SMS message using GoFax, you can insert a standard body of text with custom fields populated using a .csv database. To send mail merged SMS:  Prepare your SMS body text You can ...
    • General SMS Settings

      General SMS Settings can be managed within your secure online portal.   To access these settings: Log in  to your GoFax secure web portal Go to the main menu ( The Dashboard  ) Sel ect " Send SMS Service", click "Manage SMS Settings" Select "General ...
    • Popular Articles

    • Encryption on fax sending and receiving using email

      GoFax provides automatic secure faxing when sending and receiving faxes via our online portal, our desktop software or when interfacing via our API. When sending or receiving faxes via email, we offer two options: Transport Layer Security (TLS) ...
    • Updating your credit card

      Once your account is verified, you will be able to update your credit card details. If you wish to do so, either click “Update Credit Card Details” under “Account Options” on the Dashboard, or Login to your GoFax secure web portal Go to the left main ...
    • How to send a fax online

      To send faxes online using GoFax you require the following: An online account with GoFax Purchased GoFax Send credits Using the GoFax Online Fax service, sending a fax is fast and convenient and faxes can be sent anywhere you have access to internet ...
    • How to send a fax from email

      To send faxes from email using the GoFax Email to Fax service you require the following:       An online account with GoFax Purchased GoFax Send credits Your email address added as an ‘Allowed Sender’ on your GoFax account  Email to Fax service ...
    • Fax send status codes

      When sending faxes via GoFax there are various status codes which are displayed during fax transmission attempts and final status codes provides for the fax delivery.  Status codes for during fax transmission:   Status  Description Conversion ...