Conference Management

Conference

The represents a single conference originated and terminated from an account.

Conference Resource URI

/2012-04-24/Accounts/{AccountSid}/Conferences/{ConferenceSid}

Get Conference details

HTTP GET. Returns the representation of a Conference resource, including the properties above. Example: Get Conference by ConferenceSid

CURL
NodeJS
Python
Java
CURL
curl -X GET https://api.teleapi.net/call/2012-04-24/Accounts/ACCOUNT_SID/Conferences/(conference_sid).json \
-u 'teleapi-Token'
NodeJS
const request = require('request');
​
// Provide your Account Sid and Auth Token from your Console Account page
const ACCOUNT_SID = 'my_ACCOUNT_SID';
const AUTH_TOKEN = 'my_AUTH_TOKEN';
​
request({
method: 'GET',
url: 'https://api.teleapi.net/call/2012-04-24/Accounts/' + ACCOUNT_SID + '/Conferences/(conference_sid).json',
auth: { 'user': ACCOUNT_SID, 'pass': AUTH_TOKEN }
},
function (error, response, body) {
// Add your business logic below; status can be found at 'response.statusCode' and response body at 'body'
...
}
);
Python
from http.client import HTTPSConnection
from base64 import b64encode
​
# Provide your Account Sid and Auth Token from your Console Account page
ACCOUNT_SID = 'my_ACCOUNT_SID'
AUTH_TOKEN = 'my_AUTH_TOKEN'
​
userAndPass = b64encode(bytes(ACCOUNT_SID + ':' + AUTH_TOKEN, 'utf-8')).decode("ascii")
headers = { 'Authorization' : 'Basic %s' % userAndPass }
​
conn = HTTPSConnection('api.teleapi.net')
conn.request("GET", '/call/2012-04-24/Accounts/' + ACCOUNT_SID + '/Conferences/(conference_sid).json',
headers=headers)
res = conn.getresponse()
​
# Add your business logic below; status can be found at 'res.status', reason at 'res.reason' and response body can be retrieved with res.read()
...
Java
import java.net.URL;
import javax.net.ssl.HttpsURLConnection;
import java.io.*;
import java.util.Base64;
​
public class JavaSampleClass {
// Provide your Account Sid and Auth Token from your Console Account page
public static final String ACCOUNT_SID = "my_ACCOUNT_SID";
public static final String AUTH_TOKEN = "my_AUTH_TOKEN";
​
​
public static void main(String[] args) throws Exception {
String userAndPass = ACCOUNT_SID + ':' + AUTH_TOKEN;
String encoded = Base64.getEncoder().encodeToString(userAndPass.getBytes());
​
URL url = new URL("https://api.teleapi.net/call/2012-04-24/Accounts/" + ACCOUNT_SID + "/Conferences/(conference_sid).json");
HttpsURLConnection conn = (HttpsURLConnection)url.openConnection();
conn.setRequestProperty("Authorization", "Basic " + encoded);
conn.setRequestMethod("GET");
​
// Add your business logic below; response code can be obtained from 'conn.getResponseCode()' and input stream from 'conn.getInputStream()'
...
}
}

HTTP POST Not supported.

HTTP PUT Not supported.

HTTP DELETE Not supported.

Conference Subresources <Participants> represent set/list of in-progress calls in a running conference room.

/2012-04-24/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants

​