Skip to content

Commit

Permalink
## Enhancements
Browse files Browse the repository at this point in the history
  - Added Configuration API
  - Added API to get all active session details
  - Added Reset password by Security Answer API
  - Added Remove Email Management API
  • Loading branch information
SUDHANSHU authored and SUDHANSHU committed Nov 7, 2017
1 parent f3c2de1 commit 6b01070
Show file tree
Hide file tree
Showing 69 changed files with 313 additions and 4,246 deletions.
25 changes: 17 additions & 8 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,27 @@
# LoginRadius PHP SDK Change Log


# Version 4.4.0
Released on **Novemeber 7, 2017**
## Enhancements
- Added Configuration API
- Added API to get all active session details
- Added Reset password by Security Answer API
- Added Remove Email Management API

# Version 4.3.0
Released on **September 15, 2017**
## Enhancements
- Ability to support proxy server
- Projection of fields in API's
- Added management API to generate a new SOTT
- Projection of fields in api's
- Added management api to generate a new SOTT
- Custom object edit API enhancements
- Added security questions API's
- Added invalidate phone API
- Added instant link login APIs
- Added pre-registration validation API's
- Auto login API enhancement
- Added security questions api's
- Added invalidate phone api
- Added instant link login api
- Added simplified instant registration data api's
- Auto login api enhancement

# Version 4.2.0
Released on **June 20, 2017**
## Enhancements
Expand Down
84 changes: 82 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ curl -sS https://getcomposer.org/installer | php
Next, run the Composer command to install the latest stable version of library:

```bash
composer require loginradius/php-sdk-2.0:4.3.0
composer require loginradius/php-sdk:4.4.0
```

You can then later update LoginRadius PHP SDK using composer:
Expand Down Expand Up @@ -62,6 +62,7 @@ include_once "LoginRadiusSDK/CustomerRegistration/Management/RoleAPI.php";
include_once "LoginRadiusSDK/CustomerRegistration/Management/CustomObjectAPI.php";
include_once "LoginRadiusSDK/CustomerRegistration/Management/SchemaAPI.php";
include_once "LoginRadiusSDK/Advance/WebHooksAPI.php";
include_once "LoginRadiusSDK/Advance/CloudAPI.php";
```

##Configuration
Expand Down Expand Up @@ -98,6 +99,7 @@ use LoginRadiusSDK\CustomerRegistration\Management\RoleAPI;
use LoginRadiusSDK\CustomerRegistration\Management\CustomObjectAPI;
use LoginRadiusSDK\CustomerRegistration\Management\SchemaAPI;
use LoginRadiusSDK\Advance\WebHooksAPI;
use LoginRadiusSDK\Advance\CloudAPI;
```
Create a LoginRadius object using API & Secret key:
```bush
Expand All @@ -122,6 +124,8 @@ $roleObject = new RoleAPI (LR_API_KEY, LR_API_SECRET, array('output_format' => '
$customObject = new CustomObjectAPI (LR_API_KEY, LR_API_SECRET, array('output_format' => 'json'));
$webhookObject = new WebHooksAPI (LR_API_KEY, LR_API_SECRET, array('output_format' => 'json'));
$cloudObject = new CloudAPI (LR_API_KEY, LR_API_SECRET, array('output_format' => 'json'));
```
If you are using proxy server then create a LoginRadius object using API & Secret key & proxy server details.
Expand Down Expand Up @@ -157,11 +161,22 @@ $fields= "email, username";
**Output Response:**
{
{
UserName: 'test1213',
Email: [ { Type: 'Primary', Value: '[email protected]' } ]
}
```
####Call Get Configuraton API's
Get list of configuration selected in LoginRadius user account.
```bush
try{
$result = $cloudObject->getConfigurationList();
}
catch (LoginRadiusException $e){
$e->getMessage();
$e->getErrorResponse();
}
```
####Call GetProvidersAPI API's
Get list of provider selected in LoginRadius user account.
Expand Down Expand Up @@ -439,6 +454,16 @@ catch (LoginRadiusException $e){
$e->getErrorResponse();
}
```
#####Get all active seesions
```bush
try{
$result= $advanceSocialLoginObject->getActiveSessionByToken($access_token);
}
catch (LoginRadiusException $e){
$e->getMessage();
$e->getErrorResponse();
}
```
#####Trackable Status Fetching
```bush
try{
Expand Down Expand Up @@ -831,6 +856,39 @@ catch (LoginRadiusException $e){
$e->getErrorResponse();
}
```

#####Auth Reset Password by Security Question and Email
```bush
try{
$result= $authenticationObject->authResetPasswordBySecurityAnswerAndEmail($data);
}
catch (LoginRadiusException $e){
$e->getMessage();
$e->getErrorResponse();
}
```

#####Auth Reset Password by Security Question and Phone
```bush
try{
$result= $authenticationObject->authResetPasswordBySecurityAnswerAndPhone($data);
}
catch (LoginRadiusException $e){
$e->getMessage();
$e->getErrorResponse();
}
```

#####Auth Reset Password by Security Question and Username
```bush
try{
$result= $authenticationObject->authResetPasswordBySecurityAnswerAndUserName($data);
}
catch (LoginRadiusException $e){
$e->getMessage();
$e->getErrorResponse();
}
```
#####Update Security Question by Access token
```bush
try{
Expand Down Expand Up @@ -1077,6 +1135,28 @@ catch (LoginRadiusException $e){
$e->getErrorResponse();
}
```
#####Remove an email by uid
```bush
try{
$result = $accountObject->removeEmailByUidAndEmail($uid, $data);
}
catch (LoginRadiusException $e){
$e->getMessage();
$e->getErrorResponse();
}
```
#####Update or insert an email by uid
```bush
try{
$result = $accountObject->updateOrInsertEmailByUid($uid, $data);
}
catch (LoginRadiusException $e){
$e->getMessage();
$e->getErrorResponse();
}
```
#####Get Server Time
```bush
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "loginradius/php-sdk",
"description": "LoginRadius PHP SDK v4.2.0",
"description": "LoginRadius PHP SDK v4.4.0",
"keywords": ["loginradius", "phpsdk"],
"type": "library",
"license": "MIT",
Expand Down
Loading

0 comments on commit 6b01070

Please sign in to comment.