{"id":100,"date":"2022-09-17T10:28:56","date_gmt":"2022-09-17T10:28:56","guid":{"rendered":"https:\/\/infobip.com\/developers\/?p=100"},"modified":"2023-09-11T14:35:47","modified_gmt":"2023-09-11T14:35:47","slug":"how-to-preview-sms-with-python-and-infobip","status":"publish","type":"post","link":"https:\/\/www.infobip.com\/developers\/blog\/how-to-preview-sms-with-python-and-infobip","title":{"rendered":"How to schedule an SMS with Python and Infobip"},"content":{"rendered":"\n<img decoding=\"async\" src=\"https:\/\/img.shields.io\/pypi\/pyversions\/infobip-api-python-sdk\" alt=\"Python\">\n\n\n\n<p>As an outcome of this guide, you will be able to schedule an SMS and receive it within the specified time window on your handset using Infobip SMS API.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Prerequisites<\/h2>\n\n\n\n<p>\u2022 <a href=\"https:\/\/www.infobip.com\/signup\" target=\"_blank\" rel=\"noopener\">Infobip account<\/a><\/p>\n\n\n\n<p>\u2022 Working <a href=\"https:\/\/www.python.org\/downloads\/\" target=\"_blank\" rel=\"noopener\">Python 3<\/a> environment<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Difficulty level<\/h2>\n\n\n\n<p>This guide assumes very basic knowledge of Python and basic familiarity with APIs.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Summary of the steps<\/h2>\n\n\n\n<p>\u2022 Install the Infobip API Python SDK.<br>\u2022 Import the SMS Channel and create an SMS Channel instance.<br>\u2022 Add credentials, phone number, and SMS payload that includes scheduling details.<br>\u2022 Send an SMS and print the response to track its progress. The SMS will arrive at your handset within the time window specified in the SMS payload.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Install the Infobip API Python SDK<\/h2>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>pip install infobip-api-python-sdk<\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Create an SMS Channel instance<\/h2>\n\n\n\n<p>Create an SMS instance to input your credentials and access its methods. In this case, we will use the <code>send_sms_message<\/code> method to add the SMS payload. Your payload will include all scheduling details.<\/p>\n\n\n\n<p><strong>Step 1.<\/strong> Import the <code>SMSChannel<\/code>.<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-python\" data-lang=\"Python\"><code>from infobip_channels.sms.channel import SMSChannel<\/code><\/pre><\/div>\n\n\n\n<p><strong>Step 2.<\/strong> Create <code>SMSChannel<\/code> and add your <code>base_url<\/code> and <code>api_key<\/code> that you can access either from your <a href=\"https:\/\/portal.infobip.com\/homepage\/\" target=\"_blank\" rel=\"noopener\">Infobip account<\/a> or from the <a href=\"https:\/\/www.infobip.com\/docs\/api\" target=\"_blank\" rel=\"noopener\">Infobip API landing page<\/a>, if logged in.<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-python\" data-lang=\"Python\"><code>channel = SMSChannel.from_auth_params({\n    &quot;base_url&quot;: &quot;&lt;your_base_url&gt;&quot;,\n    &quot;api_key&quot;: &quot;&lt;your_api_key&gt;&quot;\n})<\/code><\/pre><\/div>\n\n\n\n<p><strong>Step 3.<\/strong> Use the <code>send_sms_message<\/code> method to add the <a href=\"https:\/\/www.infobip.com\/docs\/api#channels\/sms\/send-sms-message\" target=\"_blank\" rel=\"noopener\">SMS payload<\/a> that will additionally include scheduling details.<\/p>\n\n\n\n<p>Key points about scheduling:<\/p>\n\n\n\n<p>\u2022 Use the following format: <code>yyyy-MM-dd'T'HH:mm:ss.SSSZ<\/code> within the <code>sendAt<\/code> field to pass the specific date and time you want your message to be sent.<br>\u2022 Your message cannot be scheduled later than 180 days in advance.<br>\u2022 Add a<code>bulkId<\/code> field to pass your custom bulk ID which you will then use to manage your scheduled messages. Otherwise, the Infobip platform will autogenerate it for you and return it in a response.<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-python\" data-lang=\"Python\"><code>sms_response = channel.send_sms_message({\n  &quot;messages&quot;: [\n    {\n      &quot;destinations&quot;: [\n        {\n          &quot;to&quot;: &quot;447415774432&quot;\n        },\n      ],\n      &quot;from&quot;: &quot;InfoSMS&quot;,\n      &quot;text&quot;: &quot;This is a sample message&quot;,\n      &quot;sendAt&quot;: &quot;2022-07-18T14:27:00.000+0000&quot;\n    }\n  ]\n})<\/code><\/pre><\/div>\n\n\n\n<p><strong>Step 4.<\/strong> Print the response to monitor the progress of your SMS that will arrive at your handset around the time and date you have specified in the <code>sendAt<\/code> field. You&#8217;ll also be able to view your bulk ID.<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-python\" data-lang=\"Python\"><code>print(sms_response)<\/code><\/pre><\/div>\n\n\n\n<p>Once you run the code, you should see a <code>200 OK<\/code> response and receive an SMS at the specified date and time. The response contains an autogenerated <code>bulkId<\/code> that you can use to manage your scheduling, e.g. reschedule your message, view\/update its status or cancel it completely. You can also use it for analytics and troubleshooting.<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-json\" data-lang=\"JSON\"><code>{\n  &quot;bulkId&quot;: &quot;35823398891103573113&quot;,\n  &quot;messages&quot;: [{\n      &quot;messageId&quot;: &quot;35841637745505282710&quot;,\n      &quot;status&quot;: {\n        &quot;description&quot;: &quot;Message sent to next instance&quot;,\n        &quot;groupId&quot;: 1,\n        &quot;groupName&quot;: &quot;PENDING&quot;,\n        &quot;id&quot;: 26,\n        &quot;name&quot;: &quot;MESSAGE_ACCEPTED&quot;\n      },\n      &quot;to&quot;: &quot;2250be2d4219-3af1-78856-aabe-1362af1edfd2&quot;\n    }]\n}<\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Reschedule an SMS<\/h2>\n\n\n\n<p>To <a href=\"https:\/\/www.infobip.com\/docs\/api\/channels\/sms\/sms-messaging\/outbound-sms\/reschedule-sms-messages\" target=\"_blank\" rel=\"noopener\">reschedule your SMS<\/a>, use <code>bulkId<\/code> to identify which message you want to reschedule and pass it as a query parameter. The body should only contain the <code>sendAt<\/code> field with a new date and time you want to use. Note that, just like with scheduling, the new date cannot exceed 180 days into the future.<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-python\" data-lang=\"Python\"><code>rescheduled_sms = channel.reschedule_sms_messages(\n    {&quot;bulkId&quot;: &quot;35823398891103573113&quot;},\n    {\n        &quot;sendAt&quot;: &quot;2022-08-25T16:00:00&quot;\n    })\n\nprint(rescheduled_sms)<\/code><\/pre><\/div>\n\n\n\n<p>If successful, you&#8217;ll get a <code>200 OK<\/code> response that returns the new date and confirms the bulk ID.<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-json\" data-lang=\"JSON\"><code>{\n  &quot;bulkId&quot;: &quot;35823398891103573113&quot;,\n  &quot;sendAt&quot;: &quot;2022-08-25T16:00:00.000+0000&quot;\n}<\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">View the status of your scheduled messages<\/h2>\n\n\n\n<p>To <a href=\"https:\/\/www.infobip.com\/docs\/api\/channels\/sms\/sms-messaging\/outbound-sms\/get-scheduled-sms-messages-status\" target=\"_blank\" rel=\"noopener\">view the status of your scheduled message<\/a>, you&#8217;ll again need to know your bulk ID and pass it in as a query parameter with the <code>get_scheduled_sms_messages_status<\/code> method.<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-python\" data-lang=\"Python\"><code>sms_status = channel.get_scheduled_sms_messages_status(\n    {&quot;bulkId&quot;: &quot;35823398891103573113&quot;}\n)\n\nprint(sms_status)<\/code><\/pre><\/div>\n\n\n\n<p>The <code>200 OK<\/code> response will contain the confirmation of the bulk ID and the current status of your message.<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-json\" data-lang=\"JSON\"><code>{\n  &quot;bulkId&quot;: &quot;35823398891103573113&quot;,\n  &quot;status&quot;: &quot;PENDING&quot;\n}<\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Cancel a scheduled SMS or change its status<\/h2>\n\n\n\n<p>You can <a href=\"https:\/\/www.infobip.com\/docs\/api\/channels\/sms\/sms-messaging\/outbound-sms\/update-scheduled-sms-messages-status\" target=\"_blank\" rel=\"noopener\">cancel a scheduled SMS or update its status<\/a> by calling the <code>update_scheduled_sms_messages_status<\/code> method and passing in your (you guessed it!) bulk ID as a query parameter and the status you wish to update it within the request body.<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-python\" data-lang=\"Python\"><code>canceled_sms = channel.update_scheduled_sms_messages_status(\n    {&quot;bulkId&quot;: &quot;35823398891103573113&quot;},\n    {&quot;status&quot;: &quot;CANCELED&quot;}\n)\n\nprint(canceled_sms)<\/code><\/pre><\/div>\n\n\n\n<p>Your <code>200 OK<\/code> response will confirm the bulk ID and the new status of the message. In the case of a <code>CANCELED<\/code> status, the sending of the message will also get canceled.<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-json\" data-lang=\"JSON\"><code>{\n  &quot;bulkId&quot;: &quot;35823398891103573113&quot;,\n  &quot;status&quot;: &quot;CANCELED&quot;\n}<\/code><\/pre><\/div>\n","protected":false},"excerpt":{"rendered":"<p>As an outcome of this guide, you will be [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_import_markdown_pro_load_document_selector":0,"_import_markdown_pro_submit_text_textarea":"","footnotes":""},"categories":[12,255,13,264],"tags":[46,76],"coauthors":[134],"class_list":["post-100","post","type-post","status-publish","format-standard","hentry","category-guide","category-infobip-products","category-python","category-sms","tag-developer-docs","tag-sdk"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to schedule an SMS with Python and Infobip - Infobip Developers Hub<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.infobip.com\/developers\/blog\/how-to-preview-sms-with-python-and-infobip\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to schedule an SMS with Python and Infobip - Infobip Developers Hub\" \/>\n<meta property=\"og:description\" content=\"As an outcome of this guide, you will be [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.infobip.com\/developers\/blog\/how-to-preview-sms-with-python-and-infobip\" \/>\n<meta property=\"og:site_name\" content=\"Infobip Developers Hub\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/infobip\/\" \/>\n<meta property=\"article:published_time\" content=\"2022-09-17T10:28:56+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-09-11T14:35:47+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/img.shields.io\/pypi\/pyversions\/infobip-api-python-sdk\" \/>\n<meta name=\"author\" content=\"Joanna Suau\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@JoannaSuau\" \/>\n<meta name=\"twitter:site\" content=\"@InfobipDev\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Joanna Suau\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.infobip.com\/developers\/blog\/how-to-preview-sms-with-python-and-infobip#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.infobip.com\/developers\/blog\/how-to-preview-sms-with-python-and-infobip\"},\"author\":{\"name\":\"Joanna Suau\",\"@id\":\"https:\/\/www.infobip.com\/developers\/#\/schema\/person\/707842627f046bb5722c37a9fdc85d62\"},\"headline\":\"How to schedule an SMS with Python and Infobip\",\"datePublished\":\"2022-09-17T10:28:56+00:00\",\"dateModified\":\"2023-09-11T14:35:47+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.infobip.com\/developers\/blog\/how-to-preview-sms-with-python-and-infobip\"},\"wordCount\":562,\"publisher\":{\"@id\":\"https:\/\/www.infobip.com\/developers\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.infobip.com\/developers\/blog\/how-to-preview-sms-with-python-and-infobip#primaryimage\"},\"thumbnailUrl\":\"https:\/\/img.shields.io\/pypi\/pyversions\/infobip-api-python-sdk\",\"keywords\":[\"developer docs\",\"SDK\"],\"articleSection\":[\"Guide\",\"Infobip Products\",\"Python\",\"SMS\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.infobip.com\/developers\/blog\/how-to-preview-sms-with-python-and-infobip\",\"url\":\"https:\/\/www.infobip.com\/developers\/blog\/how-to-preview-sms-with-python-and-infobip\",\"name\":\"How to schedule an SMS with Python and Infobip - Infobip Developers Hub\",\"isPartOf\":{\"@id\":\"https:\/\/www.infobip.com\/developers\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.infobip.com\/developers\/blog\/how-to-preview-sms-with-python-and-infobip#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.infobip.com\/developers\/blog\/how-to-preview-sms-with-python-and-infobip#primaryimage\"},\"thumbnailUrl\":\"https:\/\/img.shields.io\/pypi\/pyversions\/infobip-api-python-sdk\",\"datePublished\":\"2022-09-17T10:28:56+00:00\",\"dateModified\":\"2023-09-11T14:35:47+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.infobip.com\/developers\/blog\/how-to-preview-sms-with-python-and-infobip#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.infobip.com\/developers\/blog\/how-to-preview-sms-with-python-and-infobip\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.infobip.com\/developers\/blog\/how-to-preview-sms-with-python-and-infobip#primaryimage\",\"url\":\"https:\/\/img.shields.io\/pypi\/pyversions\/infobip-api-python-sdk\",\"contentUrl\":\"https:\/\/img.shields.io\/pypi\/pyversions\/infobip-api-python-sdk\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.infobip.com\/developers\/blog\/how-to-preview-sms-with-python-and-infobip#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.infobip.com\/developers\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to schedule an SMS with Python and Infobip\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.infobip.com\/developers\/#website\",\"url\":\"https:\/\/www.infobip.com\/developers\/\",\"name\":\"Infobip Developers Hub\",\"description\":\"Build meaningful customer relationships across any channel\",\"publisher\":{\"@id\":\"https:\/\/www.infobip.com\/developers\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.infobip.com\/developers\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.infobip.com\/developers\/#organization\",\"name\":\"Infobip Developers Hub\",\"url\":\"https:\/\/www.infobip.com\/developers\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.infobip.com\/developers\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.infobip.com\/developers\/wp-content\/uploads\/2023\/03\/Infobip_logo_favicon.png\",\"contentUrl\":\"https:\/\/www.infobip.com\/developers\/wp-content\/uploads\/2023\/03\/Infobip_logo_favicon.png\",\"width\":696,\"height\":696,\"caption\":\"Infobip Developers Hub\"},\"image\":{\"@id\":\"https:\/\/www.infobip.com\/developers\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/infobip\/\",\"https:\/\/x.com\/InfobipDev\",\"https:\/\/www.youtube.com\/channel\/UCUPSTy53VecI5GIir3J3ZbQ\",\"https:\/\/github.com\/infobip-community\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.infobip.com\/developers\/#\/schema\/person\/707842627f046bb5722c37a9fdc85d62\",\"name\":\"Joanna Suau\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.infobip.com\/developers\/#\/schema\/person\/image\/cccb05b0dfa8fde5d00a09f4047f929e\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/b632afa61f1a27c1a0d823a9ec17eeb047cf476c570012dd90ba88a1bb9b1585?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/b632afa61f1a27c1a0d823a9ec17eeb047cf476c570012dd90ba88a1bb9b1585?s=96&d=mm&r=g\",\"caption\":\"Joanna Suau\"},\"description\":\"Joanna is a Developer Educator at Infobip, working in the Developer Relations team.\",\"sameAs\":[\"https:\/\/medium.com\/@joanna.suau\",\"https:\/\/www.linkedin.com\/in\/joannasuau\/\",\"https:\/\/x.com\/JoannaSuau\"],\"url\":\"https:\/\/www.infobip.com\/developers\/blog\/author\/joanna\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to schedule an SMS with Python and Infobip - Infobip Developers Hub","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.infobip.com\/developers\/blog\/how-to-preview-sms-with-python-and-infobip","og_locale":"en_US","og_type":"article","og_title":"How to schedule an SMS with Python and Infobip - Infobip Developers Hub","og_description":"As an outcome of this guide, you will be [&hellip;]","og_url":"https:\/\/www.infobip.com\/developers\/blog\/how-to-preview-sms-with-python-and-infobip","og_site_name":"Infobip Developers Hub","article_publisher":"https:\/\/www.facebook.com\/infobip\/","article_published_time":"2022-09-17T10:28:56+00:00","article_modified_time":"2023-09-11T14:35:47+00:00","og_image":[{"url":"https:\/\/img.shields.io\/pypi\/pyversions\/infobip-api-python-sdk","type":"","width":"","height":""}],"author":"Joanna Suau","twitter_card":"summary_large_image","twitter_creator":"@JoannaSuau","twitter_site":"@InfobipDev","twitter_misc":{"Written by":"Joanna Suau","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.infobip.com\/developers\/blog\/how-to-preview-sms-with-python-and-infobip#article","isPartOf":{"@id":"https:\/\/www.infobip.com\/developers\/blog\/how-to-preview-sms-with-python-and-infobip"},"author":{"name":"Joanna Suau","@id":"https:\/\/www.infobip.com\/developers\/#\/schema\/person\/707842627f046bb5722c37a9fdc85d62"},"headline":"How to schedule an SMS with Python and Infobip","datePublished":"2022-09-17T10:28:56+00:00","dateModified":"2023-09-11T14:35:47+00:00","mainEntityOfPage":{"@id":"https:\/\/www.infobip.com\/developers\/blog\/how-to-preview-sms-with-python-and-infobip"},"wordCount":562,"publisher":{"@id":"https:\/\/www.infobip.com\/developers\/#organization"},"image":{"@id":"https:\/\/www.infobip.com\/developers\/blog\/how-to-preview-sms-with-python-and-infobip#primaryimage"},"thumbnailUrl":"https:\/\/img.shields.io\/pypi\/pyversions\/infobip-api-python-sdk","keywords":["developer docs","SDK"],"articleSection":["Guide","Infobip Products","Python","SMS"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.infobip.com\/developers\/blog\/how-to-preview-sms-with-python-and-infobip","url":"https:\/\/www.infobip.com\/developers\/blog\/how-to-preview-sms-with-python-and-infobip","name":"How to schedule an SMS with Python and Infobip - Infobip Developers Hub","isPartOf":{"@id":"https:\/\/www.infobip.com\/developers\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.infobip.com\/developers\/blog\/how-to-preview-sms-with-python-and-infobip#primaryimage"},"image":{"@id":"https:\/\/www.infobip.com\/developers\/blog\/how-to-preview-sms-with-python-and-infobip#primaryimage"},"thumbnailUrl":"https:\/\/img.shields.io\/pypi\/pyversions\/infobip-api-python-sdk","datePublished":"2022-09-17T10:28:56+00:00","dateModified":"2023-09-11T14:35:47+00:00","breadcrumb":{"@id":"https:\/\/www.infobip.com\/developers\/blog\/how-to-preview-sms-with-python-and-infobip#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.infobip.com\/developers\/blog\/how-to-preview-sms-with-python-and-infobip"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.infobip.com\/developers\/blog\/how-to-preview-sms-with-python-and-infobip#primaryimage","url":"https:\/\/img.shields.io\/pypi\/pyversions\/infobip-api-python-sdk","contentUrl":"https:\/\/img.shields.io\/pypi\/pyversions\/infobip-api-python-sdk"},{"@type":"BreadcrumbList","@id":"https:\/\/www.infobip.com\/developers\/blog\/how-to-preview-sms-with-python-and-infobip#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.infobip.com\/developers\/"},{"@type":"ListItem","position":2,"name":"How to schedule an SMS with Python and Infobip"}]},{"@type":"WebSite","@id":"https:\/\/www.infobip.com\/developers\/#website","url":"https:\/\/www.infobip.com\/developers\/","name":"Infobip Developers Hub","description":"Build meaningful customer relationships across any channel","publisher":{"@id":"https:\/\/www.infobip.com\/developers\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.infobip.com\/developers\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.infobip.com\/developers\/#organization","name":"Infobip Developers Hub","url":"https:\/\/www.infobip.com\/developers\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.infobip.com\/developers\/#\/schema\/logo\/image\/","url":"https:\/\/www.infobip.com\/developers\/wp-content\/uploads\/2023\/03\/Infobip_logo_favicon.png","contentUrl":"https:\/\/www.infobip.com\/developers\/wp-content\/uploads\/2023\/03\/Infobip_logo_favicon.png","width":696,"height":696,"caption":"Infobip Developers Hub"},"image":{"@id":"https:\/\/www.infobip.com\/developers\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/infobip\/","https:\/\/x.com\/InfobipDev","https:\/\/www.youtube.com\/channel\/UCUPSTy53VecI5GIir3J3ZbQ","https:\/\/github.com\/infobip-community"]},{"@type":"Person","@id":"https:\/\/www.infobip.com\/developers\/#\/schema\/person\/707842627f046bb5722c37a9fdc85d62","name":"Joanna Suau","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.infobip.com\/developers\/#\/schema\/person\/image\/cccb05b0dfa8fde5d00a09f4047f929e","url":"https:\/\/secure.gravatar.com\/avatar\/b632afa61f1a27c1a0d823a9ec17eeb047cf476c570012dd90ba88a1bb9b1585?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b632afa61f1a27c1a0d823a9ec17eeb047cf476c570012dd90ba88a1bb9b1585?s=96&d=mm&r=g","caption":"Joanna Suau"},"description":"Joanna is a Developer Educator at Infobip, working in the Developer Relations team.","sameAs":["https:\/\/medium.com\/@joanna.suau","https:\/\/www.linkedin.com\/in\/joannasuau\/","https:\/\/x.com\/JoannaSuau"],"url":"https:\/\/www.infobip.com\/developers\/blog\/author\/joanna"}]}},"_links":{"self":[{"href":"https:\/\/www.infobip.com\/developers\/wp-json\/wp\/v2\/posts\/100","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.infobip.com\/developers\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.infobip.com\/developers\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.infobip.com\/developers\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.infobip.com\/developers\/wp-json\/wp\/v2\/comments?post=100"}],"version-history":[{"count":6,"href":"https:\/\/www.infobip.com\/developers\/wp-json\/wp\/v2\/posts\/100\/revisions"}],"predecessor-version":[{"id":2067,"href":"https:\/\/www.infobip.com\/developers\/wp-json\/wp\/v2\/posts\/100\/revisions\/2067"}],"wp:attachment":[{"href":"https:\/\/www.infobip.com\/developers\/wp-json\/wp\/v2\/media?parent=100"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.infobip.com\/developers\/wp-json\/wp\/v2\/categories?post=100"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.infobip.com\/developers\/wp-json\/wp\/v2\/tags?post=100"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/www.infobip.com\/developers\/wp-json\/wp\/v2\/coauthors?post=100"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}