Show / Hide Table of Contents

Interface IApiRequestable

APIリクエストを行うインターフェース

Namespace: Pixiv.VroidSdk.Oauth
Assembly: Pixiv.VroidSdk.dll
Syntax
public interface IApiRequestable

Methods

ApiConnection(String, IHttpParam, IDictionary<String, String>, Nullable<Int32>)

APIリクエストを実行するためのIHttpConnectionを返す

Declaration
IHttpConnection ApiConnection(string requestPath, IHttpParam param = null, IDictionary<string, string> header = null, int? timeout = null)
Parameters
Type Name Description
String requestPath

リクエスト先のパス

IHttpParam param

HTTPリクエストパラメータ

IDictionary<String, String> header

HTTPリクエストヘッダ

Nullable<Int32> timeout

HTTPリクエストのタイムアウト時間(秒)

Returns
Type Description
IHttpConnection

APIリクエストを実行するIHttpConnection

ForceRefreshCode(Action<Account>, Action<Exception>)

APIアクセストークンを強制的に再発行する

Declaration
IStrategy ForceRefreshCode(Action<Account> onAccountAuth, Action<Exception> onFailed)
Parameters
Type Name Description
Action<Account> onAccountAuth

トークンの再発行に成功した

Action<Exception> onFailed

トークンの再発行に失敗した

Returns
Type Description
IStrategy

APIアクセストークンを再発行するIStrategyを返す

In This Article
Back to top Generated by DocFX