public static MiguelRa.MyGengoClient.Translate.Service.Language.ApiResult Translate_Service_LanguageOO() { // build params SortedDictionary <string, object> param = new SortedDictionary <string, object>(); param["ts"] = Util.timestamp(); param["api_key"] = _publicKey; param["api_sig"] = Crypto.sign(Utils.buildQuery(param), _privateKey); // get client Service client = (Service)Api.factory("service"); // set proxy client.Proxy = _proxy; // set baseUrl client.setBaseUrl(_baseUrl); // call method client.getLanguages(_format, param); // retrieve response string response = client.getResponseBody(); // map to object string baseNamespace = "MiguelRa.MyGengoClient"; string category = "Translate.Service"; string method = "Language"; string resultClassName = "ApiResult"; ApiResultGeneric result = ParseToApiResult(response, baseNamespace, category, method, resultClassName); //return return((MiguelRa.MyGengoClient.Translate.Service.Language.ApiResult)result); }
public static MiguelRa.MyGengoClient.Account.Balance.ApiResult Account_BalanceOO() { // build params SortedDictionary <string, object> param = new SortedDictionary <string, object>(); param["ts"] = Util.timestamp(); param["api_key"] = _publicKey; param["api_sig"] = Crypto.sign(Utils.buildQuery(param), _privateKey); // get client Account account = (Account)Api.factory("account"); // set proxy account.Proxy = _proxy; // set baseUrl account.setBaseUrl(_baseUrl); // call method account.getBalance(_format, param); // retrieve response string response = account.getResponseBody(); // map to object string baseNamespace = "MiguelRa.MyGengoClient"; string category = "Account"; string method = "Balance"; string resultClassName = "ApiResult"; ApiResultGeneric result = ParseToApiResult(response, baseNamespace, category, method, resultClassName); //return return((MiguelRa.MyGengoClient.Account.Balance.ApiResult)result); }