For more information on using API

GET http://webapi.mymarketing.co.il/api/smssendingrequest/Campaign?Token={Token}&UnsubscribeText={UnsubscribeText}&CanUnsubscribe={CanUnsubscribe}&GroupIds={GroupIds}&MailingListId={MailingListId}&Id={Id}&Name={Name}&FromName={FromName}&Content={Content}

Send sms campaign request from query string.

Request Information

URI Parameters

Name

Description

Type

Additional information

token

Insert an access token to send SMS campaign

string
unsubscribe_text

If the campaign contains unsubscribe text

string
can_unsubscribe

If the campaign contains unsubscribe link

boolean
group_ids

The mobile numbers that recieve the SMS campaign, seperated by commas

string
mailing_list_id

The mobile numbers that recieve the SMS campaign, seperated by commas

string
name

SMS campaign name

string
from_name

From name

string
content

The text of the SMS campaign

string

Body Parameters

None.

Response Information

Resource Description

ApiSmsCampaignInfoCampaign

Name

Description

Type

Additional information

send_type

Send Type

id

SMS campaign id

integer
unsubscribe_text

Unsbscribe test to add to link

string
can_unsubscribe

If the links are tracked

boolean
name

SMS campaign name

string
from_name

From name

string
content

The text of the SMS campaign

string
segment

View camapaign segmantation

scheduling

Scheduling the SMS campaign

is_link_tracking

Is links are tracked

boolean

Response Formats

application/json, text/json

Sample:
{
  "send_type": "Regular",
  "id": 1,
  "unsubscribe_text": "sample string 2",
  "can_unsubscribe": true,
  "name": "sample string 3",
  "from_name": "sample string 4",
  "content": "sample string 5",
  "segment": {
    "group_ids": [
      1,
      2
    ],
    "mailing_list_id": 1,
    "limit_amount": 1
  },
  "scheduling": {
    "is_sent": true,
    "scheduled_time_zone": "Israel",
    "scheduled_date": "2016-12-24T14:12:12"
  },
  "is_link_tracking": true
}

application/xml, text/xml

Sample:
<ApiSmsCampaignInfoCampaign xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ActiveTrail.RESTfulApi.Models.SmsCampaignReport">
  <content>sample string 5</content>
  <from_name>sample string 4</from_name>
  <is_link_tracking>true</is_link_tracking>
  <name>sample string 3</name>
  <scheduling>
    <is_sent>true</is_sent>
    <scheduled_date>2016-12-24T14:12:12</scheduled_date>
    <scheduled_time_zone>Israel</scheduled_time_zone>
  </scheduling>
  <segment>
    <group_ids xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:int>1</d3p1:int>
      <d3p1:int>2</d3p1:int>
    </group_ids>
    <limit_amount>1</limit_amount>
    <mailing_list_id>1</mailing_list_id>
  </segment>
  <can_unsubscribe>true</can_unsubscribe>
  <id>1</id>
  <unsubscribe_text>sample string 2</unsubscribe_text>
</ApiSmsCampaignInfoCampaign>