Exemplo n.º 1
0
        public void ApexRestTest()
        {
            SfdcRestApi conn = new SfdcRestApi(true, 36);

            conn.Username = username;
            conn.Password = password;
            conn.Token    = token;

            conn.Open();

            string value = conn.CustomAPICall("mcjson/getJson", "POST", "{ \"userId\":\"0032C000005vCuM\" }", "application/json", "application/json");

            conn.Close();
        }
Exemplo n.º 2
0
        public void RestApiTest()
        {
            SfdcRestApi conn = new SfdcRestApi(true, 36);

            conn.Username = username;
            conn.Password = password;
            conn.Token    = token;

            conn.Open();

            ApiLimits result = conn.GetLimits(true);

            conn.Close();
        }