{ "info": { "author": "Prakkhar Shrivastava", "author_email": "prakhars1996@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# Social User Info\nA python package that helps getting the user info from social apps\n\n## Installation\n```\nRequired Python Version >= 3\n```\n```\npip install social-user-info\n```\n\n\n## Supported Social Media\n\n* Google\n* Facebook\n* Github\n\n## How it works?\n\nThe package has a method `APIService.get_user_info(access_token, auth_source)`.\nThis method accepts the access_token and auth_source and returns the user info corresponding to the given access token\n\n## Testing\n\n#### Get your google access token:\n* Navigate to: https://developers.google.com/oauthplayground/\n* 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\n* Login/Select the account you want the access token of\n* In Step 2, Click on **Exchange Authorization Code for Tokens**\n* Get the `access_token` from the returned JSON\n\n#### Get you facebook access token\n* Read through this: https://developers.facebook.com/docs/facebook-login/access-tokens/\n\n#### Get you github access token\n* Login to your github account\n* Navigate to settings\n* Navigate to developer settings at the bottom left\n* Navigate to personal access token\n* Generate a new Token\n* Get the `access_token` by clicking on Generate Token\n\n\n#### Obtain user info\n```python\nfrom social_user_info.social_user_info import APIService\n\nAPIService.get_user_info(access_token={access_token_from_above_step}, auth_source='google')\nAPIService.get_user_info(access_token={access_token_obtained_from_facebook}, auth_source='facebook')\nAPIService.get_user_info(access_token={access_token_obtained_from_github}, auth_source='github')\n```", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/dev-prakhar/social-user-info", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "social-user-info", "package_url": "https://pypi.org/project/social-user-info/", "platform": "", "project_url": "https://pypi.org/project/social-user-info/", "project_urls": { "Homepage": "https://github.com/dev-prakhar/social-user-info" }, "release_url": "https://pypi.org/project/social-user-info/1.0/", "requires_dist": null, "requires_python": "", "summary": "A python package that helps getting the user info from social apps", "version": "1.0" }, "last_serial": 5404023, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "c4c7f9cb1e145c8f21a9e5d13a151113", "sha256": "21178962cdefd7973478446a16fd862cd6f6bc75c6a7f821b4c9aaa6ca4f1c19" }, "downloads": -1, "filename": "social-user-info-0.1.tar.gz", "has_sig": false, "md5_digest": "c4c7f9cb1e145c8f21a9e5d13a151113", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2637, "upload_time": "2019-06-12T18:12:10", "url": "https://files.pythonhosted.org/packages/49/46/2ad2a4af968a456923fa13fe80e9d1a42d463eba475736a3fdd32841895c/social-user-info-0.1.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "6efc1dc78ad6c6f190c696259dbb72e4", "sha256": "a88f63f0148a85e6d9b62d224e7cb4ceabddaa12e75ca35db175c053e9402a14" }, "downloads": -1, "filename": "social-user-info-0.3.tar.gz", "has_sig": false, "md5_digest": "6efc1dc78ad6c6f190c696259dbb72e4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2427, "upload_time": "2019-06-12T18:33:04", "url": "https://files.pythonhosted.org/packages/2a/1a/6ce7d2f860b650964805b7c3d8d0ae49a6f195844840cd5fcee604423d10/social-user-info-0.3.tar.gz" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "26141164dbcf2793598e3f74846b089d", "sha256": "1abda4b130d2d6f601a44944e0f8ff8d04d609bb1088cd989352f17229cb830e" }, "downloads": -1, "filename": "social-user-info-0.4.tar.gz", "has_sig": false, "md5_digest": "26141164dbcf2793598e3f74846b089d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2317, "upload_time": "2019-06-12T18:35:47", "url": "https://files.pythonhosted.org/packages/97/a3/9a87ce4868c080c4d718a7396d18099444b6a2a72f401ac1ea3c47d7c59c/social-user-info-0.4.tar.gz" } ], "0.5": [ { "comment_text": "", "digests": { "md5": "1990581bea150a4e8e1c6244720e686b", "sha256": "78bebe9940da29c7f9076475dbbd6ec9835dc607c9f16f1eda93e715de0e45df" }, "downloads": -1, "filename": "social-user-info-0.5.tar.gz", "has_sig": false, "md5_digest": "1990581bea150a4e8e1c6244720e686b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3245, "upload_time": "2019-06-12T18:40:13", "url": "https://files.pythonhosted.org/packages/0e/8a/22032cdd4279c5ae85323bc1e8bb78168344543eda93d97f6d5e690f82a4/social-user-info-0.5.tar.gz" } ], "0.6": [ { "comment_text": "", "digests": { "md5": "154880767804cfd490345bfea06196b6", "sha256": "d1461a35af698b7b0da80cb7098767b790a9589fa8d6824df40a2ef042433e4e" }, "downloads": -1, "filename": "social-user-info-0.6.tar.gz", "has_sig": false, "md5_digest": "154880767804cfd490345bfea06196b6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3832, "upload_time": "2019-06-12T19:04:56", "url": "https://files.pythonhosted.org/packages/ed/c4/77d6deaf2e91736b1d9293e376a0bd6544ee69e74a051e3166f460f39745/social-user-info-0.6.tar.gz" } ], "0.7": [ { "comment_text": "", "digests": { "md5": "bda587c490a784c0a617dba20b8d88e9", "sha256": "909e7787990bfffb3976e1c3f6512e9f0769ec192c735d5046959d43b9f859dc" }, "downloads": -1, "filename": "social-user-info-0.7.tar.gz", "has_sig": false, "md5_digest": "bda587c490a784c0a617dba20b8d88e9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3823, "upload_time": "2019-06-12T19:07:49", "url": "https://files.pythonhosted.org/packages/3b/ed/8f4ad31950d40e327537c09430dfd940c64509929d13bdc5b6c0b34d1b57/social-user-info-0.7.tar.gz" } ], "0.8": [ { "comment_text": "", "digests": { "md5": "edd50f59530bf52e24ce29b46b675010", "sha256": "86cf1a4e0dddca6868cd635d4794dcd338daef052feba8bfe5d668410868668f" }, "downloads": -1, "filename": "social-user-info-0.8.tar.gz", "has_sig": false, "md5_digest": "edd50f59530bf52e24ce29b46b675010", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4037, "upload_time": "2019-06-14T15:36:23", "url": "https://files.pythonhosted.org/packages/33/ee/a0ff67e07a404607d07415dcef21bd40d9c56ed4959bca0f0d5777a5156a/social-user-info-0.8.tar.gz" } ], "1.0": [ { "comment_text": "", "digests": { "md5": "2a1bdf1008e916c52b2a8d1de13a735e", "sha256": "46cbb107ae63c6bd5dd05be44bc5cc0f814e4e0d961ff2962c504a266e9eb65d" }, "downloads": -1, "filename": "social-user-info-1.0.tar.gz", "has_sig": false, "md5_digest": "2a1bdf1008e916c52b2a8d1de13a735e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4161, "upload_time": "2019-06-14T16:21:13", "url": "https://files.pythonhosted.org/packages/65/01/be563aecedba5e40086de812d2cc1dfe63d4e83daf0d43871ac0bed81fdb/social-user-info-1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "2a1bdf1008e916c52b2a8d1de13a735e", "sha256": "46cbb107ae63c6bd5dd05be44bc5cc0f814e4e0d961ff2962c504a266e9eb65d" }, "downloads": -1, "filename": "social-user-info-1.0.tar.gz", "has_sig": false, "md5_digest": "2a1bdf1008e916c52b2a8d1de13a735e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4161, "upload_time": "2019-06-14T16:21:13", "url": "https://files.pythonhosted.org/packages/65/01/be563aecedba5e40086de812d2cc1dfe63d4e83daf0d43871ac0bed81fdb/social-user-info-1.0.tar.gz" } ] }