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)

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
twitter_oauth_ios_django-1.0.3-py3-none-any.whl (8.9 kB) Copy SHA256 hash SHA256 Wheel py3 Jul 29, 2018
twitter-oauth-ios-django-1.0.3.tar.gz (7.0 kB) Copy SHA256 hash SHA256 Source None Jul 29, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page