Duo Security enables protected login and transactional functions for smartphones users. It does this by sending users authorization verification from web-based platform to their phones, in addition to their login. Their REST API provides integration to their two-factor authentication process. It is a RESTful API, and returns JSON (defaut), BSON, and XML responses.
The following is a list of sample source code snippets that matched your search term. Source code snippets are chunks of source code that were found out on the Web that you can cut and paste into your own source code. Whereas most of the sample source code we've curated for our directory is for consuming APIs, we occasionally find something interesting on the API provider side of things. If you know of some sample source code that would be of interest to the ProgrammableWeb community, we'd like to know about it. Be sure to check our guidelines for making contributions to ProgrammableWeb.
The Duo Java Sample Code by Duo presents API access to implement security into web services and applications. With code available, developers can create JSON objects, make API call with phone verification, and receive transaction status.
The Duo Python Sample Code by Duo demonstrates how to integrate security into web services via API. Developers can create user and phone, generate reports by country, access reports by users and phones, and verify phone number with voice call.
The DuoSecurity PHP Sample Code by Duo communicates with the API to access security features for telephony applications. API hostname, integration key, and secret key are available as configuration resources.