C# Class Knetik.KnetikClient

Afficher le fichier Open project: knetikmedia/UnitySDK Class Usage Examples

Méthodes publiques

Méthode Description
CartAdd ( int catalogId, int catalogSkuId, int quantity, Action cb = null ) : KnetikApiResponse
CartAddDiscount ( string sku, Action cb = null ) : KnetikApiResponse
CartCheckout ( Action cb = null ) : KnetikApiResponse
CartCountries ( Action cb = null ) : KnetikApiResponse
CartGet ( Action cb = null ) : KnetikApiResponse
CartModify ( int catalogId, int catalogSkuId, int quantity, Action cb = null ) : KnetikApiResponse
CartShippingAddress ( Knetik.ShippingAddress address, Action cb = null ) : KnetikApiResponse
CartStatus ( string status, Action cb = null ) : KnetikApiResponse
GetRelationships ( int ancestorDepth, int descendantDepth, bool includeSiblings, Action cb = null ) : KnetikApiResponse
GetUserInfo ( Action cb = null ) : KnetikApiResponse
GetUserInfoWithProduct ( int productId, Action cb = null ) : KnetikApiResponse
GetUserInfoWithProduct ( string productIdentifier, Action cb = null ) : KnetikApiResponse
GuestLogin ( Action cb = null ) : KnetikApiResponse
GuestRegister ( Action cb = null ) : KnetikApiResponse
ListStorePage ( int page = 1, int limit = 10, List terms = null, List related = null, bool useCatalog = true, Action cb = null ) : KnetikApiResponse
LoadSession ( ) : bool
Login ( string username, string password, Action cb = null ) : KnetikApiResponse
Logout ( ) : void
PutUserInfo ( string name, string value, Action cb = null ) : KnetikApiResponse
Register ( string username, string password, string email, string fullname, Action cb = null ) : KnetikApiResponse
SaveSession ( ) : bool
UpgradeFromRegisteredGuest ( string username, string password, string email, string fullname, Action cb = null ) : KnetikApiResponse
UseItem ( int itemID, Action cb = null ) : KnetikApiResponse

Méthodes protégées

Méthode Description
CreateRequest ( string path, string body = "[]", string method = "post", int timestamp = -1, string serviceBundle = null ) : KnetikRequest

Private Methods

Méthode Description
BuildEnvelope ( string request, int timestamp, string signature ) : string
BuildSignature ( string request, int timestamp ) : string
BuildUrl ( string path, string serviceBundle ) : string
EncodePassword ( string password, int timestamp ) : string
GetTimestamp ( ) : int
Log ( String msg ) : void
LogError ( String msg ) : void
LogException ( Exception e ) : void

Method Details

CartAdd() public méthode

public CartAdd ( int catalogId, int catalogSkuId, int quantity, Action cb = null ) : KnetikApiResponse
catalogId int
catalogSkuId int
quantity int
cb Action
Résultat KnetikApiResponse

CartAddDiscount() public méthode

public CartAddDiscount ( string sku, Action cb = null ) : KnetikApiResponse
sku string
cb Action
Résultat KnetikApiResponse

CartCheckout() public méthode

public CartCheckout ( Action cb = null ) : KnetikApiResponse
cb Action
Résultat KnetikApiResponse

CartCountries() public méthode

public CartCountries ( Action cb = null ) : KnetikApiResponse
cb Action
Résultat KnetikApiResponse

CartGet() public méthode

public CartGet ( Action cb = null ) : KnetikApiResponse
cb Action
Résultat KnetikApiResponse

CartModify() public méthode

public CartModify ( int catalogId, int catalogSkuId, int quantity, Action cb = null ) : KnetikApiResponse
catalogId int
catalogSkuId int
quantity int
cb Action
Résultat KnetikApiResponse

CartShippingAddress() public méthode

public CartShippingAddress ( Knetik.ShippingAddress address, Action cb = null ) : KnetikApiResponse
address Knetik.ShippingAddress
cb Action
Résultat KnetikApiResponse

CartStatus() public méthode

public CartStatus ( string status, Action cb = null ) : KnetikApiResponse
status string
cb Action
Résultat KnetikApiResponse

CreateRequest() protected méthode

protected CreateRequest ( string path, string body = "[]", string method = "post", int timestamp = -1, string serviceBundle = null ) : KnetikRequest
path string
body string
method string
timestamp int
serviceBundle string
Résultat KnetikRequest

GetRelationships() public méthode

public GetRelationships ( int ancestorDepth, int descendantDepth, bool includeSiblings, Action cb = null ) : KnetikApiResponse
ancestorDepth int
descendantDepth int
includeSiblings bool
cb Action
Résultat KnetikApiResponse

GetUserInfo() public méthode

public GetUserInfo ( Action cb = null ) : KnetikApiResponse
cb Action
Résultat KnetikApiResponse

GetUserInfoWithProduct() public méthode

public GetUserInfoWithProduct ( int productId, Action cb = null ) : KnetikApiResponse
productId int
cb Action
Résultat KnetikApiResponse

GetUserInfoWithProduct() public méthode

public GetUserInfoWithProduct ( string productIdentifier, Action cb = null ) : KnetikApiResponse
productIdentifier string
cb Action
Résultat KnetikApiResponse

GuestLogin() public méthode

public GuestLogin ( Action cb = null ) : KnetikApiResponse
cb Action
Résultat KnetikApiResponse

GuestRegister() public méthode

public GuestRegister ( Action cb = null ) : KnetikApiResponse
cb Action
Résultat KnetikApiResponse

ListStorePage() public méthode

public ListStorePage ( int page = 1, int limit = 10, List terms = null, List related = null, bool useCatalog = true, Action cb = null ) : KnetikApiResponse
page int
limit int
terms List
related List
useCatalog bool
cb Action
Résultat KnetikApiResponse

LoadSession() public méthode

public LoadSession ( ) : bool
Résultat bool

Login() public méthode

public Login ( string username, string password, Action cb = null ) : KnetikApiResponse
username string
password string
cb Action
Résultat KnetikApiResponse

Logout() public méthode

public Logout ( ) : void
Résultat void

PutUserInfo() public méthode

public PutUserInfo ( string name, string value, Action cb = null ) : KnetikApiResponse
name string
value string
cb Action
Résultat KnetikApiResponse

Register() public méthode

public Register ( string username, string password, string email, string fullname, Action cb = null ) : KnetikApiResponse
username string
password string
email string
fullname string
cb Action
Résultat KnetikApiResponse

SaveSession() public méthode

public SaveSession ( ) : bool
Résultat bool

UpgradeFromRegisteredGuest() public méthode

public UpgradeFromRegisteredGuest ( string username, string password, string email, string fullname, Action cb = null ) : KnetikApiResponse
username string
password string
email string
fullname string
cb Action
Résultat KnetikApiResponse

UseItem() public méthode

public UseItem ( int itemID, Action cb = null ) : KnetikApiResponse
itemID int
cb Action
Résultat KnetikApiResponse