Recommend this page to a friend! |
Download .zip |
Info | View files (15) | Download .zip | Reputation | Support forum | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2013-09-27 (3 years ago) | Not yet rated by the users | Total: 296 | All time: 7,010 This week: 889 |
Version | License | PHP version | Categories | |||
japi-rpc 1.0 | Freely Distributable | 5 | PHP 5, User Management, Web services |
Description | Author | ||||||||||||||
This package can handle client and server API calls. |
|
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 |
File | Role | Description | ||
---|---|---|---|---|
jApi_client (4 files, 2 directories) | ||||
jApi_server (4 files, 3 directories) | ||||
readme.txt | Doc. | example file |
Files | / | jApi_client |
File | Role | Description | ||
---|---|---|---|---|
jApi_libs (2 directories) | ||||
js (1 file) | ||||
index.php | Aux. | example file | ||
jApi_config.php | Conf. | example file | ||
jApi_verify.php | Example | example file | ||
login.php | Example | example file |
Files | / | jApi_client | / | jApi_libs | / | src |
File | Role | Description |
---|---|---|
jApi_verify.class.php | Class | auxiliary file |
Files | / | jApi_server |
File | Role | Description | ||
---|---|---|---|---|
jApi_accounts (1 directory) | ||||
jApi_libs (1 file) | ||||
tmp (1 file) | ||||
jApi_config.php | Conf. | config file | ||
jApi_session.php | Example | auxiliary file | ||
jApi_verify_response.php | Example | auxiliary file | ||
pull.php | Example | auxiliary file |
Files | / | jApi_server | / | jApi_accounts | / | jApi-12-4858 | / | classes |
File | Role | Description |
---|---|---|
jApi_default_class.php | Class | user class file |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
0% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.