Level up your Twilio API skills in TwilioQuest, an educational game for Mac, Windows, and Linux. Download Now
Build the future of communications.
Start building for free

mac posts

  • By Dominik Kundel
    環境変数の設定方法 environment variables - header

    この記事はTwilio Developer AdvocateのDominik Kundelがこちらで執筆した記事を日本語化したものになります。

    コードと共有すべきではないものもあります。その多くはデバッグフラグやTwilioが提供しているAPIのアクセストークンなど、環境に依存する設定値です。環境変数はよい解決策であり、ほとんどの言語で簡単に使用できます。

    環境変数とは

    dog - wondering

    環境変数とは、その名が示すとおり環境を表すシステム内の変数です。最もよく知られている環境変数は、PATHでしょう。この変数には、実行可能ファイルを格納したフォルダへのパスが含まれます。このPATHを使用すれば、ターミナルに実行ファイルの完全なパスを記述することなく、実行ファイルの名前だけを記述できます。シェルは指定される実行ファイルについてローカルディレクトリだけでなく、PATH変数で指定されたすべてのディレクトリをチェックします。

    「組込み」変数のほかにも、自分で環境変数を定義できます。環境変数は環境に紐づけられるため、APIアクセストークンなどに最適です。開発マシンで特定の値に設定された変数を、if文や特別な構成ファイルを用意せずに本番環境で別の値に設定できます。

    たとえばTwilioヘルパーライブラリは、TWILIO_ACCOUNT_SIDTWILIO_AUTH_TOKENの2つを渡さずにクライアントのインスタンスを作成した場合、環境変数を確認します。このしくみにより機密性の高い認証情報を誤ってGitHubなどの場所へプッシュしてしまう心配がなくなります。

    Windowsの環境 …

    Read More
  • By Bonnie Schulkin
    Schedule a Daily SMS Reminder on Linux, MacOS, or Windows schedule.ong

    Introduction

    Say you have a script that you want to run every so often. Maybe you want an hourly SMS about activity on your eBay auctions. Or perhaps you want to get a daily stock market email with the biggest movers of the day, or a daily SMS message with a German vocabulary word. You could just run your script by hand. But if you’re using the script to remind yourself of something, then you’d have to remind yourself to run the script, which is probably not what you had in mind.

    The good news is that you can schedule a script to run periodically on any platform. In this post, I’m going to use the code described in the basic Twilio SMS Quickstart example for Node.js, but you could use this post to schedule any kind of script, on any kind of schedule. You can find …

    Read More
  • By Rose Maina
    Working with Xcode Auto Layout in Swift and iOS Projects Auto Layout in Xcode

    Have you ever had trouble designing an application to look good in both landscape and portrait orientation? Do not despair! Auto Layout is here to the rescue.

    Originally Apple had only one screen size, which was developer friendly since they did not have to be terribly flexible fitting into different screen sizes. Fast forward to today, it has become quite frustrating to design an app that supports different screen sizes. To make this transition easier, Apple introduced Auto Layout. It’s a relatively new concept and may be confusing to use for the very first time, but all it does is simply make your app look good across all devices. It has therefore become imperative to master this concept and we shall be going through the knowledge required to flex.

    By the end of this tutorial, we will have learned:

    • Why Auto layout is important
    • Different sections on Xcode
    • How to …
    Read More
  • By Marcos Placona
    Getting started with ASP.NET 5 and Visual Studio Code on a Mac mac_win_linux

    During Build 2015 Microsoft announced a bunch of new tools aimed at helping developers build cross platform applications. Amongst the announcements, they let us know that ASP.NET was now available and ready to run on Mac and Linux natively.

    Up until this point there has been a few different ways to get .NET applications running on Unix systems but none of them were truly native or supported by Microsoft.

    With this announcement and the release of Visual Studio Code—Microsoft’s cross platform development tool—you can now develop cross platform .NET applications on your favourite operating system.

    Today I will show you how to get started with setting up your .NET development environment on a Mac running Yosemite and show you how to build a Console and an ASP.NET MVC 6 call log application using Visual Studio Code and ASP.NET 5.

    Feel free to download all the code from the …

    Read More
  • Newer
    Older
    Sign up and start building
    Not ready yet? Talk to an expert.