C# Class Knetik.KnetikClient

ファイルを表示 Open project: knetikmedia/UnitySDK Class Usage Examples

Public Methods

Method 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

Protected Methods

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

Private Methods

Method 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 method

public CartAdd ( int catalogId, int catalogSkuId, int quantity, Action cb = null ) : KnetikApiResponse
catalogId int
catalogSkuId int
quantity int
cb Action
return KnetikApiResponse

CartAddDiscount() public method

public CartAddDiscount ( string sku, Action cb = null ) : KnetikApiResponse
sku string
cb Action
return KnetikApiResponse

CartCheckout() public method

public CartCheckout ( Action cb = null ) : KnetikApiResponse
cb Action
return KnetikApiResponse

CartCountries() public method

public CartCountries ( Action cb = null ) : KnetikApiResponse
cb Action
return KnetikApiResponse

CartGet() public method

public CartGet ( Action cb = null ) : KnetikApiResponse
cb Action
return KnetikApiResponse

CartModify() public method

public CartModify ( int catalogId, int catalogSkuId, int quantity, Action cb = null ) : KnetikApiResponse
catalogId int
catalogSkuId int
quantity int
cb Action
return KnetikApiResponse

CartShippingAddress() public method

public CartShippingAddress ( Knetik.ShippingAddress address, Action cb = null ) : KnetikApiResponse
address Knetik.ShippingAddress
cb Action
return KnetikApiResponse

CartStatus() public method

public CartStatus ( string status, Action cb = null ) : KnetikApiResponse
status string
cb Action
return KnetikApiResponse

CreateRequest() protected method

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
return KnetikRequest

GetRelationships() public method

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

GetUserInfo() public method

public GetUserInfo ( Action cb = null ) : KnetikApiResponse
cb Action
return KnetikApiResponse

GetUserInfoWithProduct() public method

public GetUserInfoWithProduct ( int productId, Action cb = null ) : KnetikApiResponse
productId int
cb Action
return KnetikApiResponse

GetUserInfoWithProduct() public method

public GetUserInfoWithProduct ( string productIdentifier, Action cb = null ) : KnetikApiResponse
productIdentifier string
cb Action
return KnetikApiResponse

GuestLogin() public method

public GuestLogin ( Action cb = null ) : KnetikApiResponse
cb Action
return KnetikApiResponse

GuestRegister() public method

public GuestRegister ( Action cb = null ) : KnetikApiResponse
cb Action
return KnetikApiResponse

ListStorePage() public method

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
return KnetikApiResponse

LoadSession() public method

public LoadSession ( ) : bool
return bool

Login() public method

public Login ( string username, string password, Action cb = null ) : KnetikApiResponse
username string
password string
cb Action
return KnetikApiResponse

Logout() public method

public Logout ( ) : void
return void

PutUserInfo() public method

public PutUserInfo ( string name, string value, Action cb = null ) : KnetikApiResponse
name string
value string
cb Action
return KnetikApiResponse

Register() public method

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

SaveSession() public method

public SaveSession ( ) : bool
return bool

UpgradeFromRegisteredGuest() public method

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

UseItem() public method

public UseItem ( int itemID, Action cb = null ) : KnetikApiResponse
itemID int
cb Action
return KnetikApiResponse