.NET (C#) Library

Class

There's one primary class named TwilioWrapper that wraps all major functions.

Initialization


TwilioWrapper wrapper = new TwilioWrapper(twilio_account_sid, twilio_account_token, thinQ_id, thinQ_token);

Configuration Parameters

  • twilio_account_sid:

You can get Twilio account sid from your Twilio account dashboard.

  • twilio_account_token:

You can get Twilio account token from your Twilio account dashboard.

  • thinQ_id:

ThinQ id that you recenved when you sigend up thinq.com.

  • thinQ_token:

ThinQ token that you recenved when you sigend up thinq.com.

Initiate a call to the thinQ line


    String call_sid = wrapper.call(from, to);

Return Value: Proper twilio call Sid if success, or relevant error message otherwise.

Quick Start Guide

Here's a simple demo code.


using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using System.Threading.Tasks;

using TwilioWithThinq;


namespace Demo

{

    class Program

    {

        static void Main(string[] args)

        {

            TwilioWrapper wrapper = new TwilioWrapper("ACa5a21802beff96f147d40bf98c957038", "7852c807435af28d468344ca57a49d2a", "11001", "0c82a54f22f775a3ed8b97b2dea74036");

            Console.WriteLine("Call sid: " + wrapper.call("1234567890", "9876543210"));

            Console.ReadLine();

        }

    }

}

Source code is on @github.