{"id":26924,"date":"2021-05-03T13:46:53","date_gmt":"2021-05-03T11:46:53","guid":{"rendered":"https:\/\/www.sms77.io\/?post_type=docs&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":"

GitHub Actions Documentation for sms77 SMS & Voice Actions<\/h2>\n

GitHub Actions can be used to automate developer workflows on GitHub.<\/p>\n

This is our GitHub Actions documentation for sms77 SMS & Voice actions. Continue reading for setup options and more.<\/p>\n

GitHub Action SMS<\/h3>\n[GitHub repo=’github-action-sms’ lang=’en’]\nSMS GitHub Action on the GitHub Marketplace<\/a><\/p>\n

Function<\/h4>\n

Send SMS to one or more recipients when triggered in a workflow.<\/p>\n

Usage<\/h4>\n
    \n
  1. Set up the credentials by specifying SMS77_API_KEY<\/code> in your repository settings.<\/li>\n
  2. Add the following to your workflow:<\/li>\n<\/ol>\n
    - name<\/span>: '<\/span>Send SMS'<\/span><\/span>\r\n  uses<\/span>: sms77io\/github-action-sms@master<\/span>\r\n  with<\/span>:\r\n    from<\/span>: '<\/span>Tommy Tester'<\/span><\/span>\r\n    text<\/span>: '<\/span>Sms77.io wishes you a nice day!'<\/span><\/span>\r\n    to<\/span>: '<\/span>+4901234567890,Tina Testing'<\/span><\/span>\r\n  env<\/span>:\r\n    SMS77_API_KEY<\/span>: ${{ secrets.SMS77_API_KEY }}<\/span><\/pre>\n

    Input<\/h4>\n

    apiKey<\/code> Mandatory<\/p>\n

    An API key from sms77.io. Alternatively, use the SMS77_API_KEY environment variable.<\/p>\n

    to<\/code> Mandatory<\/p>\n

    Phone number(s) or contact(s), separated by comma, to which the SMS should be sent.<\/p>\n

    text<\/code> Mandatory<\/p>\n

    The actual message you want to send to the recipient(s).<\/p>\n

    delay<\/code><\/p>\n

    Delayed sending at the specified time: Unix timestamp or format yyyy-mm-dd hh:ii<\/p>\n

    foreign_id<\/code><\/p>\n

    Foreign ID to be returned in callbacks. Allowed characters: a-z, A-Z, 0-9, .-_@<\/p>\n

    from<\/code><\/p>\n

    sender ID (sender name); max. 16 numeric or 11 alphanumeric characters<\/p>\n

    label<\/code><\/p>\n

    User-defined label. Allowed characters: a-z, A-Z, 0-9, .-_@<\/p>\n

    ttl<\/code><\/p>\n

    Time To Live (validity period) in minutes. Default is 2880<\/p>\n

    udh<\/code><\/p>\n

    User data header: If set and the text contains hex code, the SMS will be sent as 8-bit binary file.<\/p>\n

    Output<\/h4>\n

    response<\/code><\/p>\n

    Returns a return code<\/a> from our API.<\/p>\n

    GitHub Action Voice<\/h3>\n[GitHub repo=’github-action-vpoce’ lang=’en’]\nVoice GitHub Action on the GitHub Marketplace<\/a><\/p>\n

    Function<\/h4>\n

    Send a voice message (text to speech message) when triggered in a workflow.
    \nVoice messages are text messages that are sent to the recipient as a call\u00a0and are then read aloud on the phone.<\/p>\n

    Use<\/h4>\n
      \n
    1. Set up the credentials by specifying SMS77_API_KEY<\/code> in your repository settings.<\/li>\n
    2. Add the following to your workflow:<\/li>\n<\/ol>\n
      name<\/span>: '<\/span>Send Voice'<\/span><\/span>\r\n  uses<\/span>: sms77io\/github-action-voice@master<\/span>\r\n  with<\/span>:\r\n    from<\/span>: '<\/span>Tommy Tester'<\/span><\/span>\r\n    text<\/span>: '<\/span>Sms77.io wishes you a nice day!'<\/span><\/span>\r\n    to<\/span>: '<\/span>+4901234567890'<\/span><\/span>\r\n  env<\/span>:\r\n    SMS77_API_KEY<\/span>: ${{ secrets.SMS77_API_KEY }}<\/span><\/pre>\n

      Inputs<\/h4>\n

      apiKey<\/code> Mandatory<\/p>\n

      An API key from Sms77.io. Alternatively, use environment variable SMS77_API_KEY.<\/p>\n

      to<\/code> Mandatory<\/p>\n

      Phone number to send the voice message to<\/p>\n

      text<\/code> Mandatory<\/p>\n

      The actual message content you want to send to the recipients<\/p>\n

      from<\/code><\/p>\n

      Sender ID (sender name); maximum 16 numeric or 11 alphanumeric characters are allowed<\/p>\n

      Outputs<\/h4>\n

      response<\/code><\/p>\n

      Returns a return code<\/a> from our API.<\/p>\n

      Support<\/h3>\n

      Need help installing or using our GitHub actions? Feel free to 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}]}}