Class OauthProvider
Create authentication client to carry out VRoid Hub link
Inherited Members
Namespace: Pixiv.VroidSdk
Assembly: VRoidSDK.dll
Syntax
public static class OauthProvider
Methods
CreateOauthClient(ISdkConfig, IHttpConnectionDriver)
Create Client to carry out VRoid Hub link
Declaration
public static Client CreateOauthClient(ISdkConfig config, IHttpConnectionDriver driver)
Parameters
Type | Name | Description |
---|---|---|
ISdkConfig | config | Settings for using VRoid SDK |
IHttpConnectionDriver | driver | Object that can generate IHttpConnection |
Returns
Type | Description |
---|---|
Client | Client to carry out VRoid Hub link |
CreateOauthClient(ISdkConfig, SynchronizationContext)
Create Client to carry out VRoid Hub link
Declaration
public static Client CreateOauthClient(ISdkConfig config, SynchronizationContext context)
Parameters
Type | Name | Description |
---|---|---|
ISdkConfig | config | Settings for using VRoid SDK |
SynchronizationContext | context | SynchronizationContext when callback is called |
Returns
Type | Description |
---|---|
Client | Client to carry out VRoid Hub link |
CreateSdkConfig(String)
Create ISdkConfig that matches platform
Declaration
public static ISdkConfig CreateSdkConfig(string json)
Parameters
Type | Name | Description |
---|---|---|
String | json | credential.json.bytes body |
Returns
Type | Description |
---|---|
ISdkConfig | ISdkConfig matching platform |
Remarks
Returns IosConfig on iOS, AndroidConfig on Android, DefaultConfig on all other platforms.