![plivo phlo plivo phlo](https://www.plivo.com/assets/posts/images/sms/usecase-guides/essential/receive-sms/receive-sms-api.jpg)
To make the API requests, you need to create a Client and provide it with authentication credentials (which can be found at ).
#PLIVO PHLO INSTALL#
If you have the 0.4.1 version (a.k.a legacy) already installed, you may have to first uninstall it before installing the new version.įor features in beta, use the beta branch: $ npm install Getting started Authentication Install the SDK using npm $ npm install plivo You will be able to use the SDK to make voice calls, send SMS, and generate Plivo XML to manage your call flows. Sign up today.The Node.js SDK simplifies the integration of communications into your Node.js applications through the Plivo REST API. Haven’t tried Plivo yet? Getting started takes only five minutes. Don’t use Python? Don’t worry - we have SDKs for PHP, Java, Node.js, Ruby. ConclusionĪnd that’s all there is to making and receiving voice calls using Plivo’s Python SDK. Just call the Plivo number you specified and you should hear the message you configured read by Plivo’s text-to-speech processor. Guess what? You’re done! You don’t have to run a program for this PHLO to work.
#PLIVO PHLO UPDATE#
Then click Update Number at the bottom of the screen. From the PHLO Name drop-down, choose the PHLO you just created. On the next screen, from the Application Type drop-down, choose PHLO. From the list of Your Numbers, click on the number you want to use. Go back to the Plivo console and click on Phone Numbers on the left nav bar. Give this PHLO a name, then click Save.īefore you can receive a call using this PHLO, you have to assign it to a Plivo number. In the Configuration panel, enter some text to speak to the caller when the call is answered, then click Validate to save the configuration. This time, drag the Play Audio component onto the canvas and connect the Start node to it using the Incoming Call trigger state. To see how, let’s create another PHLO and again specify Build My Own. Of course outbound calls are only half of the equation. Save the file and run it with the commandīoom - you’ve made an outbound call. Phlo_client = (auth_id=auth_id, auth_token=auth_token)
#PLIVO PHLO CODE#
Create a Python source code file - let’s call it trigger_phlo.py - and paste this code into it: import plivo auth_id = '' You’re also going to need your Auth ID and Auth Token. Copy the PHLO ID from the end of the URL of the workflow you just created. Now you can trigger the PHLO and test it out. Give the PHLO a name by clicking on the pencil icon in the upper left, then click the Save button in the upper right. That’s all we’re going to do for now - we told you it was simple. In the Configuration panel, enter the text you want to play for the call recipient, then click Validate. Connect the Initiate Call node to Play Audio using the Answered trigger state.
![plivo phlo plivo phlo](https://s3.amazonaws.com/plivo_blog_uploads/static_assets/images/blog/blood_donation/image02.png)
Now drag the Play Audio component onto the canvas. PHLO lets you use variables for From and To values, but we’re keeping it simple for this example. Add a caller ID number in the From field and a destination number in the To field, then click Validate to save the configuration.
#PLIVO PHLO PLUS#
Valid phone numbers begin with a plus sign and a country code. Now you can add configuration information for the call in the right pane. From the list of components on the left side, drag and drop the Initiate Call component onto the canvas, then connect the Start node to the Initiate Call node using the API Request trigger state. In the window that pops up, click Build My Own. Click on the PHLO icon on the left navigation bar, then on Create New PHLO. Now you can turn to PHLO, Plivo’s visual workflow design studio, to set up the workflow for an outbound call.
![plivo phlo plivo phlo](https://s3.amazonaws.com/plivo_blog_uploads/static_assets/images/blog/virtual-receptionist/image06.png)
You can also rent numbers from this screen. Check the Numbers screen of the Plivo console to see what numbers you have available. You need an voice-enabled Plivo phone number if you want to receive incoming calls. We provide an Auth ID and Auth Token in the Account section at the top of the overview page of the Plivo console. You have to know your credentials before you can use the Plivo API. Or you can download the source code from our repo and run Find your Auth ID and Auth Token Change to the directory into which you want to install the Plivo Python package and run We’ll presume you already have Python installed.
#PLIVO PHLO HOW TO#
Let’s see how to make outbound calls and handle incoming calls through Plivo in a Python application. Don’t worry - Plivo has an SDK to help you out.
![plivo phlo plivo phlo](https://www.plivo.com/assets/blog/byoc_edited.jpg)
Your company has settled on Plivo to handle its voice and messaging communications, and now it’s your job to start integrating Plivo into your company’s applications.