PHP Classes

jApi RPC : Handle client and server API calls

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 304 All time: 7,387 This week: 455Up
Version License PHP version Categories
japi-rpc 1.0Freely Distributable5PHP 5, User Management, Web services
Description 

Author

This package can handle client and server API calls.

The server classes can handle remote calls to an API implemented by custom classes.

The server classes can forward the calls to the API classes with the names as call parameters along with the functions being called.

API calls are available to establish authenticated user session management storing the user session data in files associated to cookies.

A client class is also made available to obtain access authorization from the server and keep it as a session token.

Picture of Bijaya Kumar  Behera
Name: Bijaya Kumar Behera <contact>
Classes: 6 packages by
Country: India India
Innovation award
Innovation award
Nominee: 1x

Winner: 1x

 

Details

How to setup a jApi severver 1. open the jApi_config.php 2. create a new auth token id ,ie in example "jApi-12-4858" 3. $jApi_rules['jApi-12-4858'], $jApi_rules['jApi-12-4859'] .... 4. assign auth api user IP in 'auth_ip' from where api session request will sent to jAPi server 5. assign auth verify user url 6. create api method create a folder i,e jApi_server/jApi_accounts/jApi-12-4858/classes then create a file jApi_default_class.php code : <?php class default_jApi_class extends jApi_class { static function function1 ($userid, $sess_data) { } } ?> How to setup a jApi cleint 1. open the jApi_config.php 2. // assign ur jApi JSON Api server define('jApi_auth_token', 'jApi-12-4858'); define('jApi_uri', 'http://localhost/jApi_server/pull.php'); 3. on client html javascript jApi.doApiCall('function1'); or jApi.doApiCall('default.function1'); jApi.doApiCall('<class>.<method>');

  Files folder image Files (15)  
File Role Description
Files folder imagejApi_client (4 files, 2 directories)
Files folder imagejApi_server (4 files, 3 directories)
Accessible without login Plain text file readme.txt Doc. example file

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:304
This week:0
All time:7,387
This week:455Up