Skip to content

Commit fd9391b

Browse files
committed
implemented customer registration
1 parent 6fbde81 commit fd9391b

81 files changed

Lines changed: 2964 additions & 7894 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

LICENSE

Lines changed: 0 additions & 21 deletions
This file was deleted.

README.md

Lines changed: 12 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,24 @@
1-
LoginRadius offers a complete social infrastructure solution combining 30 major social platforms into one unified API.
2-
With LoginRadius, websites and mobile apps can integrate social login, enable social sharing, capture user profiles and
3-
social data, create a single sign-on experience for their users, and get comprehensive social analytics.
4-
Our social solution helps websites engage, understand, and leverage their users.
1+
# LoginRadius python SDK
52

6-
This module provides a wrapper for urllib2 or the requests library to easily access the API from
7-
https://api.loginradius.com/ in a more "pythonic" way. Providing easier access to essential data in a few lines of code.
8-
This will work with 1.0 or 2.0 API specifications.
93

10-
For more information, visit: http://loginradius.com/
4+
![Home Image](https://d2lvlj7xfpldmj.cloudfront.net/support/github/banner-1544x500.png)
115

12-
Prerequisites
13-
========
6+
## Introduction ##
147

15-
You will need at least Python - 2.7 or greater. LoginRadius module utilizes the namedtuple from the collections library
16-
and the import_module from importlib.
8+
LoginRadius Customer Registration wrapper provides access to LoginRadius Identity Management Platform API.
179

18-
From Package
19-
=========
10+
LoginRadius is an Identity Management Platform that simplifies user registration while securing data. LoginRadius Platform simplifies and secures your user registration process, increases conversion with Social Login that combines 30 major social platforms, and offers a full solution with Traditional Customer Registration. You can gather a wealth of user profile data from Social Login or Traditional Customer Registration.
2011

21-
Using pip
12+
LoginRadius centralizes it all in one place, making it easy to manage and access. Easily integrate LoginRadius with all of your third-party applications, like MailChimp, Google Analytics, Livefyre and many more, making it easy to utilize the data you are capturing.
2213

23-
pip install loginradius
14+
LoginRadius helps businesses boost user engagement on their web/mobile platform, manage online identities, utilize social media for marketing, capture accurate consumer data, and get unique social insight into their customer base.
2415

25-
or with easy_install
16+
Please visit [here](http://www.loginradius.com/) for more information.
2617

27-
easy_install loginradius
2818

29-
Online Documentation
30-
======
19+
## Documentation
3120

32-
You can read more at
21+
* [Configuration](http://apidocs.loginradius.com/docs/python) - Everything you need to begin using the Social SDK.
22+
* [Customer Registration](http://apidocs.loginradius.com/docs/user-registration) - Everything you need to implement the full LoginRadius Customer Registration system including Social Login.
3323

34-
http://loginradius.readthedocs.org/
35-
36-
Changelog
37-
======
38-
39-
2.02
40-
-----
41-
42-
* Company and Post properties fixed for user tuple, and removed activity.
24+
General documentation regarding the Python REST API and related flows can be found on the [LoginRadius API Documentations](http://apidocs.loginradius.com/) site.

README.txt

Lines changed: 0 additions & 42 deletions
This file was deleted.

LoginRadius.py renamed to demo/cgi/LoginRadius.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# premium or enterprise members only. #
1212
# In which case, an exception will be raised. #
1313
#################################################
14-
# Copyright 2013-2014 LoginRadius Inc. #
14+
# Copyright 2014-2015 LoginRadius Inc. #
1515
# - www.LoginRadius.com #
1616
#################################################
1717
# This file is part of the LoginRadius SDK #
@@ -25,10 +25,10 @@
2525
from importlib import import_module
2626

2727
__author__ = "LoginRadius"
28-
__copyright__ = "Copyright 2013-2014, LoginRadius"
28+
__copyright__ = "Copyright 2014-2015, LoginRadius"
2929
__email__ = "developers@loginradius.com"
3030
__status__ = "Production"
31-
__version__ = "2.0.2"
31+
__version__ = "2.1"
3232

3333
SECURE_API_URL = "https://api.loginradius.com/"
3434
HEADERS = {'Accept': "application/json"}
@@ -51,9 +51,7 @@ def __init__(self, token):
5151
"""
5252
self.user = None
5353
self.error = {}
54-
if not self.API_SECRET:
55-
raise Exceptions.NoAPISecret
56-
54+
5755
#Token from the POST request.
5856
self.token = token
5957

@@ -79,6 +77,9 @@ def __init__(self, token):
7977
except:
8078
raise
8179

80+
if not self.API_SECRET:
81+
raise Exceptions.NoAPISecret
82+
8283
else:
8384
#Namedtuples for access, api, and user.
8485
self.access = self._get_access_tuple()
@@ -961,4 +962,4 @@ def __init__(self):
961962

962963
def __str__(self):
963964
return "The requested endpoint is not supported by the current ID provider, " + \
964-
"please check the API support page at http://www.loginradius.com/datapoints"
965+
"please check the API support page at http://www.loginradius.com/datapoints"

0 commit comments

Comments
 (0)