Kabeers Drive Auth Api


Sign in to Kabeers Drive & access user files and folders with This API
Login with Kabeers Drive User Account Credentials.


You must provide an Authorization Header in your requests.

//Run Auth Once Each Session if (!sessionStorage.auth) { auth(); sessionStorage.auth = "true"; } //Call Functions After Auth renderFiles(); function auth(){ var USERNAME = "KABEERS DRIVE USERNAME"; var PASSWORD = "KABEERS DRIVE PASSWORD"; $.ajax ({ type: "GET", url: "http://drive.hosted-kabeersnetwork.unaux.com/server/api/login.php", dataType: 'json', headers: { "Authorization": "Basic " + btoa(USERNAME + ":" + PASSWORD) }, data: '', success: function (data){ sessionStorage.auth = "true"; // AUTHORIZED console.log("authoirzed"); } }); }
This is a sample on how you can implement Login inside your App.

Example Response


{
  "login": "success",
  "username": "bugs",
  "id": "5654213aaf",
  "avatar": "http://drive.hosted-kabeersnetwork.unaux.com/user-AccountImages/d41d8cd98f00b204e9800998ecf8427sd5f.png",
  "is_plus": "1"
}


Response Details

login username id avatar is_plus
1 Login Status.
Can be success or failed.
Username of current user.
Remains same.
Unique id of current User.
Every User has an uneditable id.
Avatar of current user.
Remains same. May be editable in a later update.
Shows if user has subscribed to Kabeers Drive Premium.
Boolean, Can be 1 if true and 0 if false.

For More info Contact us at Kabeer11000@gmail.com.

© 2020 Kabeers Network | All Rights Reserved
Free Web Hosting