Skip to main content

Call to Action

Web => me/promotions/{post_hash}

API => api/post/{post_hash}/call-to-action


Get Call to Action Data:#

Method GET

Response Data:

{
"success": true,
"call_to_action": {
"enable": true|false,
"title": "تایتل",
"description": "توضیحات",
"button_title": "لینک تایتل",
"button_link": "https://virgool.io",
"button_color": "#107abb"
}
}

Create Call to Action:#

Method POST

Request Parameters:

  • title: required|max:70
  • description: required|max:280
  • button_link: required|max:100
  • button_title: required|max:40
  • button_color: hex_color

Response Data:

{
ٍ "success": true,
"msg": "عملیات مورد نظر با موفقیت انجام شد.",
"redirect_url": post url
}

Update Call to Action:#

Method PUT

Request Parameters:

  • title: required|max:70
  • description: required|max:280
  • button_link: required|max:100
  • button_title: required|max:40
  • button_color: hex_color
  • enable: boolean

Response Data:

ٍ{
"success": true,
"msg": "عملیات مورد نظر با موفقیت انجام شد.",
"redirect_url": post url
}

Delete Call to Action:#

Method DELETE

Response Data:

ٍ{
"success": true,
"msg": "عملیات مورد نظر با موفقیت انجام شد.",
"redirect_url": post url
}