Telesocial API – Social Calling made easier

Telesocial API allows developers to make phone calls easily. It is an easy way to integrate phones with the Social Web. Actions possible are call, record, blast, and voicemail.

How it Works

Telesocial works by authenticating devices to users using applications. Once authorized, apps can then use mobile devices in a secure and anonymous way and at huge scale.

The relationships that Telesocial manage are the following:

Demo Application

In this case, we will be building an iphone application that can make phone calls. We will use the Objective-C wrapper for Telesocial API

  1. Developers must first sign up and get an application key. Then developer needs to create an app using the network specific information. The steps are present at the following link
    //sites.telesocial.com/docs/getting-started/signup-add-your-app
  2. Start building your applications, which implement the Telesocial API. Using any of the wrappers for Java, Objective-C etc. or using the REST API for any of the mobile platforms. We will use the Objective-C Wrapper for iOS.
  3. Create a new XCode Project and Add Core telephony framework and Telesocial SDK into the project
  4. The ViewController.h file, needs to implement TSRestClientDelegate
    @interface ViewController : UIViewController
  5. The ViewController.m file, needs to have
    [TSRestClient defaultClient].applicationKey = @”Your_Application_key”;
    [TSRestClient defaultClient].serviceUrl = @”https://api.telesocial.com/”;
    [TSRestClient defaultClient].delegate = self;
    The TSRestClient will give u the client instance to make api calls. The application key is created when you registered for a new application earlier. Setting the delegate to self allows access to the delegate calls.
  6. Register phone numbers with users accounts
    [[TSRestClient defaultClient] registerNetworkId:@”id1″ phone:@”1xxxxxxxxxx”];
    [[TSRestClient defaultClient] registerNetworkId:@”id2″ phone:@”1xxxxxxxxxx”];
    Each phone number to be used will be associated with a unique string id. Each phone number needs to have 1 appended at its beginning of the 10 digit phone number.
  7. Create a talkspace with the a registered user
    [[TSRestClient defaultClient] createConferenceWithNetwork:@”id2″ greetingId:nil recordingId:nil];
    This will create a talkspace with the phone number associated with id2 which is similar to the host of a conference call.
  8. Add members to the talkspace. Once the talkspace is created members can be added to it. As a best practice, always do this within the delegate method call which ensures that the conference has been created
    (void) restClient:(TSRestClient*) client didCreateConferenceId:(NSString*) conferenceIdNowithStatus:(TSStatus*) status
  9. The conference call is started once the talkspace is created and more members are added as the networks are added to the talkspace.
  10. Hangup the conference call by ending the phone call or by using the API call
    – (void) closeConference:(NSString*) conferenceId;

Points to consider while trying the demo application

Important Sources

  1. Telesocial API Documentation:
    //sites.telesocial.com/docs/
  2. Telesocial Website:
    //telesocial.com
  3. Telesocial API wrappers list:
    https://dev.telesocial.com/docs/sdks/
  4. Telesocial API Objective-C wrapper for iOS
    https://github.com/Telesocial/Telesocial-SDK-IOS
Exit mobile version