C# Class BISDK.Client

Inheritance: RestSharp.RestClient
Afficher le fichier Open project: brightideainc/bi_api_cs_sdk Class Usage Examples

Méthodes publiques

Свойство Type Description
Email string
MasterAuthentication bool
PersistentDataManager PersistentDataManager

Protected Properties

Свойство Type Description
ClientId string
ClientSecret string
_accessToken string
_customDomain string
_refreshToken string

Méthodes publiques

Méthode Description
Authenticate ( string email, string password ) : Response
AuthenticateMaster ( ) : Response
AuthenticateMaster ( string email ) : Response
Client ( string clientId, string clientSecret ) : System
DownloadData ( Request request ) : byte[]
Execute ( RestRequest request ) : Response
LoadPersistentData ( ) : bool
ProcessRequest ( RestRequest req ) : void
RenewAccessToken ( string refreshToken ) : object>.Dictionary

Méthodes protégées

Méthode Description
DoExecute ( RestRequest request ) : Response
Execute ( RestRequest request, int retry ) : Response
ProcessError ( int errorCode, string message ) : void
RefreshAccessToken ( ) : void

Method Details

Authenticate() public méthode

public Authenticate ( string email, string password ) : Response
email string
password string
Résultat Response

AuthenticateMaster() public méthode

public AuthenticateMaster ( ) : Response
Résultat Response

AuthenticateMaster() public méthode

public AuthenticateMaster ( string email ) : Response
email string
Résultat Response

Client() public méthode

public Client ( string clientId, string clientSecret ) : System
clientId string
clientSecret string
Résultat System

DoExecute() protected méthode

protected DoExecute ( RestRequest request ) : Response
request RestSharp.RestRequest
Résultat Response

DownloadData() public méthode

public DownloadData ( Request request ) : byte[]
request Request
Résultat byte[]

Execute() public méthode

public Execute ( RestRequest request ) : Response
request RestSharp.RestRequest
Résultat Response

Execute() protected méthode

protected Execute ( RestRequest request, int retry ) : Response
request RestSharp.RestRequest
retry int
Résultat Response

LoadPersistentData() public méthode

public LoadPersistentData ( ) : bool
Résultat bool

ProcessError() protected méthode

protected ProcessError ( int errorCode, string message ) : void
errorCode int
message string
Résultat void

ProcessRequest() public méthode

public ProcessRequest ( RestRequest req ) : void
req RestSharp.RestRequest
Résultat void

RefreshAccessToken() protected méthode

protected RefreshAccessToken ( ) : void
Résultat void

RenewAccessToken() public méthode

public RenewAccessToken ( string refreshToken ) : object>.Dictionary
refreshToken string
Résultat object>.Dictionary

Property Details

ClientId protected_oe property

protected string ClientId
Résultat string

ClientSecret protected_oe property

protected string ClientSecret
Résultat string

Email public_oe property

public string Email
Résultat string

MasterAuthentication public_oe property

public bool MasterAuthentication
Résultat bool

PersistentDataManager public_oe property

public PersistentDataManager PersistentDataManager
Résultat PersistentDataManager

_accessToken protected_oe property

protected string _accessToken
Résultat string

_customDomain protected_oe property

protected string _customDomain
Résultat string

_refreshToken protected_oe property

protected string _refreshToken
Résultat string