印度洋/jiwa-php-rest-api

1.0.0 2022-08-18 04:11 UTC

This package is not auto-updated.

Last update: 2024-09-26 14:37:37 UTC


README

未提供描述(由 Swagger Codegen 生成 https://github.com/swagger-api/swagger-codegen

此 PHP 包由 Swagger Codegen 项目自动生成

  • API 版本:1.0
  • 包版本:1.0.0
  • 构建包:io.swagger.codegen.languages.PhpClientCodegen

要求

PHP 5.5 及更高版本

安装与使用

Composer

要通过 Composer 安装绑定,请在 composer.json 中添加以下内容

{
  "repositories": [
    {
      "type": "git",
      "url": "https://github.com/bharatsindha/jiwa-php-rest-api.git"
    }
  ],
  "require": {
    "bharatsindha/jiwa-php-rest-api": "*@dev"
  }
}

然后运行 composer install

手动安装

下载文件并包含 autoload.php

    require_once('/path/to/Jiwa/vendor/autoload.php');

测试

要运行单元测试

composer install
./vendor/bin/phpunit

入门指南

请按照 安装过程 进行操作,然后运行以下命令

<?php
require_once(__DIR__ . '/vendor/autoload.php');

$apiInstance = 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;
}

?>

API 端点文档

所有 URI 都相对于 https://api.jiwa.com.au

模型文档

授权文档

基本认证

  • 类型:HTTP基本认证

作者