{"id":26924,"date":"2021-05-03T13:46:53","date_gmt":"2021-05-03T11:46:53","guid":{"rendered":"https:\/\/www.sms77.io\/?post_type=docs&#038;p=26924"},"modified":"2021-12-10T11:00:32","modified_gmt":"2021-12-10T10:00:32","slug":"github-actions","status":"publish","type":"docs","link":"https:\/\/www.seven.io\/en\/docs\/third-party-solutions\/github-actions\/","title":{"rendered":"GitHub Actions"},"content":{"rendered":"<h2>GitHub Actions Documentation for sms77 SMS &amp; Voice Actions<\/h2>\n<p>GitHub Actions can be used to automate developer workflows on GitHub.<\/p>\n<p>This is our GitHub Actions documentation for sms77 SMS &amp; Voice actions. Continue reading for setup options and more.<\/p>\n<h3>GitHub Action SMS<\/h3>\n[GitHub repo=&#8217;github-action-sms&#8217; lang=&#8217;en&#8217;]\n<a href=\"https:\/\/github.com\/marketplace\/actions\/sms77-io-sms\" target=\"_blank\" rel=\"noopener\">SMS GitHub Action on the GitHub Marketplace<\/a><\/p>\n<h4>Function<\/h4>\n<p>Send SMS to one or more recipients when triggered in a workflow.<\/p>\n<h4>Usage<\/h4>\n<ol>\n<li>Set up the credentials by specifying <code>SMS77_API_KEY<\/code> in your repository settings.<\/li>\n<li>Add the following to your workflow:<\/li>\n<\/ol>\n<pre>- <span class=\"pl-ent\">name<\/span>: <span class=\"pl-s\"><span class=\"pl-pds\">'<\/span>Send SMS<span class=\"pl-pds\">'<\/span><\/span>\r\n  <span class=\"pl-ent\">uses<\/span>: <span class=\"pl-s\">sms77io\/github-action-sms@master<\/span>\r\n  <span class=\"pl-ent\">with<\/span>:\r\n    <span class=\"pl-ent\">from<\/span>: <span class=\"pl-s\"><span class=\"pl-pds\">'<\/span>Tommy Tester<span class=\"pl-pds\">'<\/span><\/span>\r\n    <span class=\"pl-ent\">text<\/span>: <span class=\"pl-s\"><span class=\"pl-pds\">'<\/span>Sms77.io wishes you a nice day!<span class=\"pl-pds\">'<\/span><\/span>\r\n    <span class=\"pl-ent\">to<\/span>: <span class=\"pl-s\"><span class=\"pl-pds\">'<\/span>+4901234567890,Tina Testing<span class=\"pl-pds\">'<\/span><\/span>\r\n  <span class=\"pl-ent\">env<\/span>:\r\n    <span class=\"pl-ent\">SMS77_API_KEY<\/span>: <span class=\"pl-s\">${{ secrets.SMS77_API_KEY }}<\/span><\/pre>\n<h4>Input<\/h4>\n<p><code>apiKey<\/code> Mandatory<\/p>\n<p>An API key from sms77.io. Alternatively, use the SMS77_API_KEY environment variable.<\/p>\n<p><code>to<\/code> Mandatory<\/p>\n<p>Phone number(s) or contact(s), separated by comma, to which the SMS should be sent.<\/p>\n<p><code>text<\/code> Mandatory<\/p>\n<p>The actual message you want to send to the recipient(s).<\/p>\n<p><code>delay<\/code><\/p>\n<p>Delayed sending at the specified time: Unix timestamp or format yyyy-mm-dd hh:ii<\/p>\n<p><code>foreign_id<\/code><\/p>\n<p>Foreign ID to be returned in callbacks. Allowed characters: a-z, A-Z, 0-9, .-_@<\/p>\n<p><code>from<\/code><\/p>\n<p>sender ID (sender name); max. 16 numeric or 11 alphanumeric characters<\/p>\n<p><code>label<\/code><\/p>\n<p>User-defined label. Allowed characters: a-z, A-Z, 0-9, .-_@<\/p>\n<p><code>ttl<\/code><\/p>\n<p>Time To Live (validity period) in minutes. Default is 2880<\/p>\n<p><code>udh<\/code><\/p>\n<p>User data header: If set and the text contains hex code, the SMS will be sent as 8-bit binary file.<\/p>\n<h4>Output<\/h4>\n<p><code>response<\/code><\/p>\n<p>Returns a <a href=\"https:\/\/staging.seven.io\/en\/docs\/gateway\/http-api\/sms-disptach\/#return\" rel=\"noopener\">return code<\/a> from our API.<\/p>\n<h3>GitHub Action Voice<\/h3>\n[GitHub repo=&#8217;github-action-vpoce&#8217; lang=&#8217;en&#8217;]\n<a href=\"https:\/\/github.com\/marketplace\/actions\/sms77-io-voice\" target=\"_blank\" rel=\"noopener\">Voice GitHub Action on the GitHub Marketplace<\/a><\/p>\n<h4>Function<\/h4>\n<p>Send a voice message (text to speech message) when triggered in a workflow.<br \/>\nVoice messages are text messages that are sent to the recipient as a call\u00a0and are then read aloud on the phone.<\/p>\n<h4>Use<\/h4>\n<ol>\n<li>Set up the credentials by specifying <code>SMS77_API_KEY<\/code> in your repository settings.<\/li>\n<li>Add the following to your workflow:<\/li>\n<\/ol>\n<pre><span class=\"pl-ent\">name<\/span>: <span class=\"pl-s\"><span class=\"pl-pds\">'<\/span>Send Voice<span class=\"pl-pds\">'<\/span><\/span>\r\n  <span class=\"pl-ent\">uses<\/span>: <span class=\"pl-s\">sms77io\/github-action-voice@master<\/span>\r\n  <span class=\"pl-ent\">with<\/span>:\r\n    <span class=\"pl-ent\">from<\/span>: <span class=\"pl-s\"><span class=\"pl-pds\">'<\/span>Tommy Tester<span class=\"pl-pds\">'<\/span><\/span>\r\n    <span class=\"pl-ent\">text<\/span>: <span class=\"pl-s\"><span class=\"pl-pds\">'<\/span>Sms77.io wishes you a nice day!<span class=\"pl-pds\">'<\/span><\/span>\r\n    <span class=\"pl-ent\">to<\/span>: <span class=\"pl-s\"><span class=\"pl-pds\">'<\/span>+4901234567890<span class=\"pl-pds\">'<\/span><\/span>\r\n  <span class=\"pl-ent\">env<\/span>:\r\n    <span class=\"pl-ent\">SMS77_API_KEY<\/span>: <span class=\"pl-s\">${{ secrets.SMS77_API_KEY }}<\/span><\/pre>\n<h4>Inputs<\/h4>\n<p><code>apiKey<\/code> Mandatory<\/p>\n<p>An API key from Sms77.io. Alternatively, use environment variable SMS77_API_KEY.<\/p>\n<p><code>to<\/code> Mandatory<\/p>\n<p>Phone number to send the voice message to<\/p>\n<p><code>text<\/code> Mandatory<\/p>\n<p>The actual message content you want to send to the recipients<\/p>\n<p><code>from<\/code><\/p>\n<p>Sender ID (sender name); maximum 16 numeric or 11 alphanumeric characters are allowed<\/p>\n<h4>Outputs<\/h4>\n<p><code>response<\/code><\/p>\n<p>Returns a <a href=\"https:\/\/staging.seven.io\/en\/docs\/gateway\/http-api\/sms-disptach\/#return\" rel=\"noopener\">return code<\/a> from our API.<\/p>\n<h3>Support<\/h3>\n<p>Need help installing or using our GitHub actions? Feel free to <a href=\"mailto:support@sms77.io\">contact us<\/a>!<\/p>\n","protected":false},"featured_media":0,"parent":17826,"menu_order":19,"comment_status":"open","ping_status":"closed","template":"","doc_tag":[],"class_list":["post-26924","docs","type-docs","status-publish","hentry"],"comment_count":0,"_links":{"self":[{"href":"https:\/\/www.seven.io\/en\/wp-json\/wp\/v2\/docs\/26924","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.seven.io\/en\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.seven.io\/en\/wp-json\/wp\/v2\/types\/docs"}],"replies":[{"embeddable":true,"href":"https:\/\/www.seven.io\/en\/wp-json\/wp\/v2\/comments?post=26924"}],"version-history":[{"count":18,"href":"https:\/\/www.seven.io\/en\/wp-json\/wp\/v2\/docs\/26924\/revisions"}],"predecessor-version":[{"id":29881,"href":"https:\/\/www.seven.io\/en\/wp-json\/wp\/v2\/docs\/26924\/revisions\/29881"}],"up":[{"embeddable":true,"href":"https:\/\/www.seven.io\/en\/wp-json\/wp\/v2\/docs\/17826"}],"next":[{"title":"Homey","link":"https:\/\/www.seven.io\/en\/docs\/third-party-solutions\/homey\/","href":"https:\/\/www.seven.io\/en\/wp-json\/wp\/v2\/docs\/30935"}],"prev":[{"title":"Gambio","link":"https:\/\/www.seven.io\/en\/docs\/third-party-solutions\/gambio\/","href":"https:\/\/www.seven.io\/en\/wp-json\/wp\/v2\/docs\/28217"}],"wp:attachment":[{"href":"https:\/\/www.seven.io\/en\/wp-json\/wp\/v2\/media?parent=26924"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.seven.io\/en\/wp-json\/wp\/v2\/doc_tag?post=26924"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}