# OpenAPIClient-php

This document describes Channel Access Token API.


## Installation & Usage

### Requirements

PHP 7.4 and later.
Should also work with PHP 8.0.

### Composer

To install the bindings via [Composer](https://getcomposer.org/), add the following to `composer.json`:

```json
{
  "repositories": [
    {
      "type": "vcs",
      "url": "https://github.com/GIT_USER_ID/GIT_REPO_ID.git"
    }
  ],
  "require": {
    "GIT_USER_ID/GIT_REPO_ID": "*@dev"
  }
}
```

Then run `composer install`

### Manual Installation

Download the files and include `autoload.php`:

```php
<?php
require_once('/path/to/OpenAPIClient-php/vendor/autoload.php');
```

## Getting Started

Please follow the [installation procedure](#installation--usage) and then run the following:

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




$apiInstance = new LClutch\LineApi\ChannelAccessToken\Api\ChannelAccessTokenApi(
    // 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()
);
$client_assertion_type = 'client_assertion_type_example'; // string | `urn:ietf:params:oauth:client-assertion-type:jwt-bearer`
$client_assertion = 'client_assertion_example'; // string | A JSON Web Token (JWT) (opens new window)the client needs to create and sign with the private key.

try {
    $result = $apiInstance->getsAllValidChannelAccessTokenKeyIds($client_assertion_type, $client_assertion);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ChannelAccessTokenApi->getsAllValidChannelAccessTokenKeyIds: ', $e->getMessage(), PHP_EOL;
}

```

## API Endpoints

All URIs are relative to *https://api.line.me*

Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*ChannelAccessTokenApi* | [**getsAllValidChannelAccessTokenKeyIds**](docs/Api/ChannelAccessTokenApi.md#getsallvalidchannelaccesstokenkeyids) | **GET** /oauth2/v2.1/tokens/kid | 
*ChannelAccessTokenApi* | [**issueChannelToken**](docs/Api/ChannelAccessTokenApi.md#issuechanneltoken) | **POST** /v2/oauth/accessToken | 
*ChannelAccessTokenApi* | [**issueChannelTokenByJWT**](docs/Api/ChannelAccessTokenApi.md#issuechanneltokenbyjwt) | **POST** /oauth2/v2.1/token | 
*ChannelAccessTokenApi* | [**issueStatelessChannelToken**](docs/Api/ChannelAccessTokenApi.md#issuestatelesschanneltoken) | **POST** /oauth2/v3/token | 
*ChannelAccessTokenApi* | [**revokeChannelToken**](docs/Api/ChannelAccessTokenApi.md#revokechanneltoken) | **POST** /v2/oauth/revoke | 
*ChannelAccessTokenApi* | [**revokeChannelTokenByJWT**](docs/Api/ChannelAccessTokenApi.md#revokechanneltokenbyjwt) | **POST** /oauth2/v2.1/revoke | 
*ChannelAccessTokenApi* | [**verifyChannelToken**](docs/Api/ChannelAccessTokenApi.md#verifychanneltoken) | **POST** /v2/oauth/verify | 
*ChannelAccessTokenApi* | [**verifyChannelTokenByJWT**](docs/Api/ChannelAccessTokenApi.md#verifychanneltokenbyjwt) | **GET** /oauth2/v2.1/verify | 

## Models

- [ChannelAccessTokenKeyIdsResponse](docs/Model/ChannelAccessTokenKeyIdsResponse.md)
- [ErrorResponse](docs/Model/ErrorResponse.md)
- [IssueChannelAccessTokenResponse](docs/Model/IssueChannelAccessTokenResponse.md)
- [IssueShortLivedChannelAccessTokenResponse](docs/Model/IssueShortLivedChannelAccessTokenResponse.md)
- [IssueStatelessChannelAccessTokenResponse](docs/Model/IssueStatelessChannelAccessTokenResponse.md)
- [VerifyChannelAccessTokenResponse](docs/Model/VerifyChannelAccessTokenResponse.md)

## Authorization
Endpoints do not require authorization.

## Tests

To run the tests, use:

```bash
composer install
vendor/bin/phpunit
```

## Author



## About this package

This PHP package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: `0.0.1`
- Build package: `org.openapitools.codegen.languages.PhpClientCodegen`
