Skip to main content

Implementation of singly API for Python

Project description

Implementation of singly API for Python

Installation

pip install open-singly

or

pip install git+https://github.com/MagicSolutions/open-singly.git

How to use

from open_singly import Singly

client_id = 'My_Client_ID'
client_secret = 'My_Client_Secret'
redirect_uri = 'http://www.mywebsite.com/singly/callback/'

singly = Singly(client_id, client_secret, redirect_uri)

# Get authentication URL for facebook for example
auth_url = singly.get_authentication_url('facebook')

# The user must be redirected to this URL. After authentication
# Singly will redirect user to your redirect_uri
# in the GET parameters there will be a code which You must
# provide to Singly.authenticate metod

api = singly.authenticate(code)

# After successfull authentication you can execute all methods
# provided from Singly API like that

all_profiles = api.profile.get(verify='true')

facebook_data = api.profiles.facebook.get()

facebook_friends = api.services.facebook.friends.get()

Enjoy!

Project details


Release history Release notifications | RSS feed

This version

0.2

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

open-singly-0.2.tar.gz (3.4 kB view details)

Uploaded Source

File details

Details for the file open-singly-0.2.tar.gz.

File metadata

  • Download URL: open-singly-0.2.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for open-singly-0.2.tar.gz
Algorithm Hash digest
SHA256 a51689550b93a89b01ef8cb37176596ff345cc45b2a08f7f30cb4cec91fb4002
MD5 cc2e2ce867db7b898bc17afcaca41aba
BLAKE2b-256 a539c7a630e491a183bbb4d51caf578f176e1b80776e0dd5eb24c771c1948a2e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page