CallFire Solutions

Get Auto Reply

Follow

GET AUTO REPLY

This method gets an auto-reply by Id. Returns auto-reply by id or error if it doesn't exist.

Request Parameters

ParameterDemo ValueDescriptionData Type
GetAutoReply   AutoReply request by unique ID object
Id Unique ID of resource long

Response Parameters

ParameterDescriptionData Type
AutoReply    
id Unique ID of Text Auto Reply long
Number Phone number to configure an auto reply message PhoneNumber
Keyword   string
Match   string
Message   string

Responses Status Codes

200, success

The request has been finished successfully.

400, bad request

This error code has a lot of possible causes, such as an account error, or an incorrect parameter. First of all, check that all parameters have the correct data or data type. If the error persists, contact CallFire support.

401, not authorized

The username or password has some error. Perhaps the login has expired. Make sure that you valid account.

404, not found

The ID or Number that you are trying to edit or get was not found; you should check to see if it is correct.

500, internal error

This error is not caused by the user, but is CallFire's. Please contact support.

Example: GetAutoReply


using RestSharp;

namespace [your-namespace]
{
    public class [your-class]
    {
        public string GetAutoReply()
        {
            long autoReplyId = 1428507003; // Your AutoReply Id here

            var client = new RestClient("https://www.callfire.com/api/1.1/rest/");
            client.Authenticator = new HttpBasicAuthenticator("YourLoginId", "password");

            var request = new RestRequest(string.Format("text/auto-reply/{0}", autoReplyId), Method.GET);

            var response = client.Execute(request);
            string content = response.Content;
            return content;
        }
    }
}

The XML returned is:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>

<r:Resource xmlns="http://api.callfire.com/data" xmlns:r="http://api.callfire.com/resource">

    <AutoReply id="3552074003">

       <Number>12132042444</Number>

       <Message>Thanks for your message</Message>

    </AutoReply>

</r:Resource>

Have more questions? Submit a request

Comments