Skip to main content

Create UserSocialAuth of social_django with OAuth login with twitter-kit-ios.

Project description

https://travis-ci.org/nnsnodnb/twitter-oauth-django.svg?branch=travis https://coveralls.io/repos/github/nnsnodnb/twitter-oauth-django/badge.svg?branch=travis https://badge.fury.io/py/twitter-oauth-ios-django.svg https://img.shields.io/pypi/pyversions/twitter-oauth-ios-django.svg https://img.shields.io/pypi/wheel/twitter-oauth-ios-django.svg https://img.shields.io/pypi/format/twitter-oauth-ios-django.svg https://img.shields.io/pypi/l/twitter-oauth-ios-django.svg

twitter-oauth-django

Create UserSocialAuth of social_django with OAuth login with twitter-kit-ios.

Supported python versions

3.4, 3.5, 3.6

Supported django versions

2.0.x

Installation

$ pip install twitter-oauth-ios-django

Add twitter_oauth_ios into INSTALLED_APPS in your settings.py file

INSTALLED_APPS = [
    ...,
    'social_django',
    'twitter_oauth_ios',
]

Add twitter_oauth_ios routing in urls.py file

from django.urls import include, path

urlpatterns = [
    ...,
    path('twitter_oauth/', include('twitter_oauth_ios.urls', namespace='twitter_oauth_ios')),
]

Sample request

$ curl -X PUT http://example.com/twitter_oauth/ \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -d \
    "{
        'user_id': 1111111111,
        'oauth_token': '1111111111-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
        'oauth_token_secret': 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
        'screen_name': 'sample_screen_name',
        'display_name': 'display_name'
     }",

Dependence libraries

  • Django

  • social-auth-app-django

Author

nnsnodnb

LICENSE

Copyright (c) 2018 Yuya Oka Released under the MIT license (see LICENSE)

Project details


Download files

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

Source Distribution

twitter-oauth-ios-django-1.0.3.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

twitter_oauth_ios_django-1.0.3-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file twitter-oauth-ios-django-1.0.3.tar.gz.

File metadata

  • Download URL: twitter-oauth-ios-django-1.0.3.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.7.0

File hashes

Hashes for twitter-oauth-ios-django-1.0.3.tar.gz
Algorithm Hash digest
SHA256 27c4e71eebbf5657edf4dea65786c26ed1cfe4ccda4fe6c8d00b1bc834a56196
MD5 e80c86beb64e9610c2ce6d31398bbda7
BLAKE2b-256 6a21f7d5eca70190eafa4e627931c135fa2d3c3449f9dba4916211386e73fd4c

See more details on using hashes here.

File details

Details for the file twitter_oauth_ios_django-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: twitter_oauth_ios_django-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 8.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.7.0

File hashes

Hashes for twitter_oauth_ios_django-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 87441f833ba28706f26b70278a283102582adc3d38296d2868fa7ba737203e1c
MD5 eae9f3296f77cf4b89ff7e7123bd13f2
BLAKE2b-256 60a537cd523abf726035764cb2ea17c3ab1cd581ea41485944d200fca6ed1020

See more details on using hashes here.

Supported by

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