Skip to main content

Downloads

Social User Info

A python package that helps to get the user info from social apps

Installation

Required Python Version >= 3
pip install social-user-info

Supported Social Media

  • Google
  • Facebook
  • Github
  • Microsoft

How it works?

The package has a method APIService.get_user_info(access_token, auth_source). This method accepts the access_token and auth_source and returns the user info corresponding to the given access token

Usage

Get your google access token:

  • Navigate to: https://developers.google.com/oauthplayground/
  • In Step 1, select Google OAuth2 API v2 and add https://www.googleapis.com/auth/userinfo.email and https://www.googleapis.com/auth/userinfo.profile. Click on Authorize APIs
  • Login/Select the account you want the access token of
  • In Step 2, Click on Exchange Authorization Code for Tokens
  • Get the access_token from the returned JSON

Get your facebook access token

Get your github access token

  • Login to your github account
  • Navigate to settings
  • Navigate to developer settings at the bottom left
  • Navigate to personal access token
  • Generate a new Token
  • Get the access_token by clicking on Generate Token

Get your microsoft access token

Obtain user info

from social_user_info.social_user_info import APIService

APIService.get_user_info(access_token={access_token_from_above_step}, auth_source='google')
APIService.get_user_info(access_token={access_token_obtained_from_facebook}, auth_source='facebook')
APIService.get_user_info(access_token={access_token_obtained_from_github}, auth_source='github')
APIService.get_user_info(access_token={access_token_obtained_from_microsoft}, auth_source='microsoft')

Metadata

Release files for social-user-info 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for social-user-info 1.1.0
File Size Uploaded Provenance Actions
social-user-info-1.1.0.tar.gz 6.3 kB Without provenance Details for social-user-info-1.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for social-user-info 1.1.0
File Interpreter ABI Platform Actions
social_user_info-1.1.0-py3-none-any.whl Python 3 none any Details for social_user_info-1.1.0-py3-none-any.whl

Total release size: 15.0 kB

Release files / social-user-info-1.1.0.tar.gz

Download URL social-user-info-1.1.0.tar.gz
Size 6.3 kB
Tags Source
SHA-256 checksum
How to use checksums
54c87933441495a58fac428893f078655699a3136d8fef6a3ce48f3ae914ed03
BLAKE2b-256 checksum
How to use checksums
fb15e331a5a51a77a031864cbe631cd4f95688f65c5fcbaf80e191b9cde0c780
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

Release files / social_user_info-1.1.0-py3-none-any.whl

Download URL social_user_info-1.1.0-py3-none-any.whl
Size 8.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
356565f694b33714d6a2f70cfb64639c5fb71cb5fd82044ff3a96553d2e641e0
BLAKE2b-256 checksum
How to use checksums
cf7603a527714fe0f5ebcff40290ea63e03fa82beb0d9c442bdf835dd5ca0c42
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

Security for social-user-info 1.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page