Ejemplo n.º 1
0
 public Api(Client client)
 {
    this._client = client;
    this._user = new User(this);
    this._merchants = new Merchant(this);
    this._invoices = new Invoices(this);
    this._accounts = new Accounts(this);
 }
Ejemplo n.º 2
0
 public Api(Client client)
 {
    this._client = client;
    this._user = new User(this);
    this._merchants = new Merchant(this);
    this._invoices = new Invoices(this);
    this._accounts = new Accounts(this);
    this.Baseapiurl = client.request_client(client.secure) + "://" + client.host.Trim('/') + "/" + client.path.Trim('/') + "/" + client.api_version.Trim('/') + "/";
     this.BaseapiSecureUrl = this.Baseapiurl.Replace("http://", "https://");
 }
Ejemplo n.º 3
0
 // Todo: Searialize type T to Json
 private string SerializeJson(Accounts obj)
 {
     return(JsonConvert.SerializeObject(obj));
 }
Ejemplo n.º 4
0
 // Todo: Searialize type T to Json
 private string SerializeJson(Accounts obj)
 {
     return JsonConvert.SerializeObject(obj);
 }