Hi folks,
im new to the Custom Connector and have only the basic knowledge in programming.
i want to integrate the SMS API to Custom Connector to allow it to do meaningful work in Flows.
I know that the API works, as i was able to call it via Postman Chrome extension, and receive SMS on my phone.
But I'm stuck and have hit a brick wall with the integration and i need someone to advise or tell me how far off im at.
Im using API ID 125000002 and vendor advise me basic authentication.
intuitively, i tried to supply the information using 'Import From Sample' with the JSON body below.
Validation and the code did not throw any errors at this point.
But im stuck at Stage 4: Test Stage, after i create a 'New Connection', and signed using my API ID and password
after that, i "Updated Connector' and did a test by populating the fields.
i tried so many different combinations but nothing happens.
The response code 01011 tells me there is:
Invalid request format; check request format definition (e.g.
parameter names, the length of the values you are passing
into the parameters, the type of values such as
numeric/alphabet).
Swagger Code:
swagger: '2.0'
info: {title: SMS Gateway, description: SATS SMS Gateway, version: '1.0'}
host: www.commzgate.net
basePath: /
schemes: [https]
consumes: []
produces: []
paths:
/gateway/SendMsg:
post:
responses:
default:
description: default
schema: {}
summary: Send SMS to user
description: Send SMS to user
operationId: Send_sms
parameters:
- name: body
in: body
required: false
schema:
type: object
properties:
ID: {type: string, description: ID}
Password: {type: string, description: Password}
Type: {type: string, description: Type}
Message: {type: string, description: Message}
Mobile: {type: string, description: Mobile}
definitions: {}
parameters: {}
responses: {}
securityDefinitions:
basic_auth: {type: basic}
security:
- basic_auth: []
tags: []
To integrate an SMS API into a custom connector, follow these steps:
Choose an SMS API: Select an SMS API provider and sign up for an account. Make sure the API has a well-documented API for sending SMS messages.
Get API credentials: Get the API key or authentication credentials from the API provider to be able to make requests to the API.
Create the custom connector: Use a platform such as Microsoft Power Automate or Zapier to create a custom connector. Follow the platform's instructions to create a new connector and enter the API credentials.
Define the API endpoint: Define the endpoint for sending SMS messages in the custom connector. This is typically a URL that you can get from the API provider's documentation.
Test the connector: Test the custom connector by sending an SMS message to a phone number. Make sure the message is delivered successfully.
Use the custom connector: Once the connector is working as expected, you can use it in your workflows and automation to send SMS messages.
Note: The specific steps may vary depending on the platform and SMS API provider you use.
Hello,
I was able to crack it.
We need to sent a HTTP request instead of API.
1. Initialize variable for 4 components.
* varID (API ID).
*varPasswordID (API Password)
*varMobile (The receipient mobile number)
*varMessage (the message you want to deliver)
2. Create a HTTP action with POST request and enter the following in URL:
Regards
Hidayat
SMSala is a cloud-based communication platform that performs communication functions using its APIs. SMSala Bulk SMS Provider lets you receive SMS, MMS, WhatsApp, Voice messages or even respond to the messages and many more services.