Skip to content

Commit 481ae63

Browse files
SUDHANSHUSUDHANSHU
authored andcommitted
PythonSDKV1-2.8.2
-Change method (GET POST PUT DELETE) with uppercase
1 parent 559dc25 commit 481ae63

File tree

9 files changed

+28
-20
lines changed

9 files changed

+28
-20
lines changed

README.md

100644100755
Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
# sdk-python-customer-identity
1+
# Python-SDK
2+
23
LoginRadius Python SDK for customer identity
34

4-
Work In Progress
5-
------------------
6-
To check right now, do git clone
5+
![Home Image](http://docs.lrcontent.com/resources/github/banner-1544x500.png)
6+
77

8-
From Package (Not yet completely checked)
9-
=========
8+
## Installing #
109

1110
Using pip
1211

@@ -16,15 +15,19 @@ or with easy_install
1615

1716
easy_install loginradius
1817

19-
Online Documentation
20-
====================
18+
Changelog
19+
======
20+
2.8.2
21+
-----
22+
23+
* Fixed HTTP method request name bug.
2124

22-
You can read more at
25+
2.8.1
26+
-----
2327

24-
http://loginradius.readthedocs.org/
28+
* Fixed issue of function authenticate user.
29+
* Added API for authenticating user by emailid.
2530

26-
Changelog
27-
======
2831
2.8
2932
-----
3033

@@ -34,3 +37,8 @@ Changelog
3437
-----
3538

3639
* Added User Registration APIs
40+
41+
42+
## Documentation
43+
44+
[Getting Started](https://docs.loginradius.com/api/v1/sdk-libraries/python) - Everything you need to begin using this SDK.

demo/cgi/LoginRadiusFrontEnd.js

100644100755
File mode changed.

demo/cgi/backend.py

100644100755
File mode changed.

demo/cgi/frontend.py

100644100755
File mode changed.

demo/cgi/style.css

100644100755
File mode changed.

lib/LoginRadius.py

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
__copyright__ = "Copyright 2016-2017, LoginRadius"
3030
__email__ = "[email protected]"
3131
__status__ = "Production"
32-
__version__ = "2.8.1"
32+
__version__ = "2.8.2"
3333

3434
SECURE_API_URL = "https://api.loginradius.com/"
3535
HEADERS = {'Accept': "application/json"}

lib/UserRegistration.py

100644100755
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
__copyright__ = "Copyright 2015-2016, LoginRadius"
2828
__email__ = "[email protected]"
2929
__status__ = "Production"
30-
__version__ = "2.8.1"
30+
__version__ = "2.8.2"
3131

3232
SECURE_API_URL = "https://api.loginradius.com/"
3333
HEADERS = {'Accept': "application/json"}
@@ -198,12 +198,12 @@ def _get_json(self, url, payload):
198198
raise
199199
return self._process_result(self.settings.json.load(data))
200200

201-
def __submit_json(self, method,url, payload):
201+
def __submit_json(self, method, url, payload):
202202
"""Post JSON to LoginRadius"""
203203
if self.settings.requests:
204204
import json
205205
HEADERS = {'content-type': 'application/json'}
206-
if method == 'put':
206+
if method == 'PUT':
207207
r = self.settings.requests.put(url, data=json.dumps(payload), headers=HEADERS)
208208
else:
209209
r = self.settings.requests.post(url, data=json.dumps(payload), headers=HEADERS)
@@ -216,7 +216,7 @@ def __submit_json(self, method,url, payload):
216216
data = data.encode('ascii')
217217
HEADERS = {'content-type': 'application/json'}
218218
r = self.settings.urllib2.Request(url, data, {'Content-Type': 'application/json'})
219-
if method == 'put':
219+
if method == 'PUT':
220220
r.get_method = lambda: method
221221
for key, value in HEADERS.items():
222222
r.add_header(key, value)
@@ -227,10 +227,10 @@ def __submit_json(self, method,url, payload):
227227
return self._process_result(self.settings.json.load(data))
228228

229229
def _post_json(self, url, payload):
230-
return self.__submit_json('post', url, payload)
230+
return self.__submit_json('POST', url, payload)
231231

232232
def _put_json(self, url, payload):
233-
return self.__submit_json('put', url, payload)
233+
return self.__submit_json('PUT', url, payload)
234234

235235

236236
def _get_api_key(self):

lib/__init__.py

100644100755
File mode changed.

lib/setup.py

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
setup(
33
name = 'LoginRadius',
44
py_modules = ['LoginRadius'],
5-
version = '2.8.1',
5+
version = '2.8.2',
66
description = 'Social Login and User Registration for Python.',
77
author='LoginRadius',
88
author_email='[email protected]',

0 commit comments

Comments
 (0)