api-client-dotnet/Retailcrm/Versions/V5/Client.cs
Alex Lushpai 72cac6d6f0
Multiversion client (#6)
* Multiversion sdk
* Remove redundant code
* More test coverage;
2017-10-30 13:51:45 +03:00

32 lines
794 B
C#

using System.Collections.Generic;
namespace Retailcrm.Versions.V5
{
using ParentClass = V4.Client;
/// <summary>
/// V5 Client
/// </summary>
public partial class Client : ParentClass
{
/// <summary>
/// V5 Client Constructor
/// </summary>
/// <param name="url"></param>
/// <param name="key"></param>
/// <param name="site"></param>
public Client(string url, string key, string site = "") : base(url, key, site)
{
if ("/" != url.Substring(url.Length - 1, 1))
{
url += "/";
}
url += "api/v5";
Request = new Request(url, new Dictionary<string, object> { { "apiKey", key } });
SiteCode = site;
}
}
}