PHP code example of bharatsindha / jiwa-php-rest-api
1. Go to this page and download the library: Download bharatsindha/jiwa-php-rest-api library . Choose the download type require .
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
bharatsindha / jiwa-php-rest-api example snippets
Instance = new Jiwa\Api\AuthApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$accept = "accept_example"; // string | Accept Header
$jiwa_stateful = true; // bool | Stateful indicator
$provider = "provider_example"; // string |
$state = "state_example"; // string |
$oauth_token = "oauth_token_example"; // string |
$oauth_verifier = "oauth_verifier_example"; // string |
$user_name = "user_name_example"; // string |
$password = "password_example"; // string |
$remember_me = true; // bool |
$continue = "continue_example"; // string |
$nonce = "nonce_example"; // string |
$uri = "uri_example"; // string |
$response = "response_example"; // string |
$qop = "qop_example"; // string |
$nc = "nc_example"; // string |
$cnonce = "cnonce_example"; // string |
$use_token_cookie = true; // bool |
$access_token = "access_token_example"; // string |
$access_token_secret = "access_token_secret_example"; // string |
$meta = "meta_example"; // string |
try {
$result = $apiInstance->authenticateGet($accept, $jiwa_stateful, $provider, $state, $oauth_token, $oauth_verifier, $user_name, $password, $remember_me, $continue, $nonce, $uri, $response, $qop, $nc, $cnonce, $use_token_cookie, $access_token, $access_token_secret, $meta);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AuthApi->authenticateGet: ', $e->getMessage(), PHP_EOL;
}
{
"repositories": [
{
"type": "git",
"url": "https://github.com/bharatsindha/jiwa-php-rest-api.git"
}
],
"