Skip to content

SocialFlowDev/socialflow-api-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 

Repository files navigation

SYNOPSIS

git clone https://github.com/SocialFlowDev/socialflow-api-example/
cd python
pip install -r pip-requirements.txt
python socialflow_oauth.py #Then follow the onscreen instructions.

For the Web App Example

cd python/webapp
pip install -r pip-requirements.txt
cp etc/config.yml.tpl etc/config.yml
vi etc/config.yml #now edit etc/config.yml with your configuration values.
python webapp.py

For the PHP CLI Example

cd php
composer install
php sf-ouath-example.php #Then follow the onscreen instructions.

DESCRIPTION

This repository is meant as a basic example of completing OAuth authentication and making API calls to SocialFlow's API.

There are two examples provided. The first, python/socialflow_oauth.py is for a non-web Authentication handshake.

The second, python/webapp is for a web based Authentication handshake.

Both will authenticate into SocialFlow's OAuth API after you authenticate, and make an authenticated request. You can the store and reuse the retrieved tokens. It will fetch a set of keys from SocialFlow after you authenticate, which you can store and reuse.

REQUIREMENTS

You will need your application credentials, which you can obtain from your account manager at SocialFlow, and the SocialFlow API documentation, which can be obtained from your account manager as well. You will also need access to the account that you want to use to make API calls with. We recommend creating a user specifically for the project that you are using the API for, then logging in as that user before running the script.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •