https://login.NetroMedia.com/rest.svc - currently only available in https.
Using a POST, send a query in this format:
https://login.NetroMedia.com/rest.svc/methodname
Use this header, along with User-Agent:
Content-type: application/json; charset=utf-8
For the POST body, use the JSON string containing the parameters you would like to send to a method.
Next Section →If a method is successfully executed, it will return a JSON string in the following format (where the return keys and values are the expected returns from the methods, as defined by the individual method calls' descriptions in this document):
{"Status":"Success","Data":{ "returnkey1":"returnvalue1","returnkey2":"returnvalue2",…}}
If a method fails for some reason, it will return a JSON string in the following format:
{"Status":"Failure","Error":"Error message here"}
Next Section →
Returns a token that is used to perform API operations, which remains valid for either 1hr after the latest operation (up to a full 24 hours) or remains valid until you have reached the maximum number of API calls your account has been assigned. Also returns the Account ID and Active Order ID for the logged in user.
public string Login
( string Email,
string Password
)
Email: string
Password: string
Token: Guid
AccountId: Guid
ActiveOrderId: Guid
POST
URL:
https://login.NetroMedia.com/rest.svc/Login
Request Headers:
Content-type: application/json; charset=utf-8
Request Body:
{"Email":"JohnDoe@acme.com","Password":"test123"}
Next Section →
Return the user information associated with a token (same as info returned by login method)
public string GetLoggedInUserInfo
( string Token
)
Token: Guid
Token: Guid
AccountId: Guid
ActiveOrderId: Guid
POST
URL:
https://login.NetroMedia.com/rest.svc/GetLoggedInUserInfo
Request Headers:
Content-type: application/json; charset=utf-8
Request Body:
{"Token":"61c94f66-b0de-43a0-a6cc-4e3f292cc881"}
Next Section →
Create a NetroMedia account
public string CreateAccount
( string Token,
string Email,
string AccountName,
string FirstName,
string LastName,
string PhoneNumber
)
Token: string
Email: string
AccountName: string
FirstName: string
LastName: string
PhoneNumber: string
Message: string
POST
URL:
https://login.NetroMedia.com/rest.svc/CreateAccount
Request Headers:
Content-type: application/json; charset=utf-8
Request Body:
{"Email":"JohnDoe@acme.com","AccountName":"test123","FirstName":"Mike","LastName":"Brown","PhoneNumber":"15555551212"}
Next Section →
List child NetroMedia accounts belonging to the logged in account
public string GetAccounts
( string Token
)
Token: Guid
An array of information, grouped by account, is returned. For each account, the following values are included:
Account Id: Guid
Account Name: string
Contact Email: string
POST
URL:
https://login.NetroMedia.com/rest.svc/GetAccounts
Request Headers:
Content-type: application/json; charset=utf-8
Request Body:
{"Token":"61c94f66-b0de-43a0-a6cc-4e3f292cc881"}
Next Section →
List all contacts belonging to, or belonging to a child of, the logged-in account
public string GetContacts
( string Token,
string AccountId
)
Token: Guid
Optional
AccountId: Guid
An array of information, grouped by contact, is returned. For each contact, the following values are included:
Contact Id: Guid
Contact Name: string
Contact Phone: string
Contact Email: string
POST
URL:
https://login.NetroMedia.com/rest.svc/GetContacts
Request Headers:
Content-type: application/json; charset=utf-8
Request Body:
{"Token":"61c94f66-b0de-43a0-a6cc-4e3f292cc881","AccountId":"4a494f67-b0de-43a1-a6dc-4e3f292cc3f0"}
Next Section →
Creates a channel on a single server. Returns all information needed to view, publish to, or upload on-demand content to the channel. For full CDN coverage - please request this via a Support Case
public string CreateChannel
( string Token,
string ChannelName,
string ChannelFormat,
string ChannelSource,
string ChannelRegion,
string MaxConnections,
string MaxBitRate,
string AccountId
)
Token: Guid
ChannelName: string
ChannelFormat: string
Optional
ChannelRegion: string
MaxConnections: int
MaxBitRate: float
AccountId: Guid
Other - See Remarks
ChannelSource: string
What is returned depends on the type of the channel created. These are all the possible values that can be returned for a channel:
Channel Id: Guid
Channel Name: string
Channel Type: string
Primary DNS: string
Max Connections: int
Max Bitrate: float
User Name: string
Password: string
Channel Source: Uri
FTP String: string
Public Link: string
FMS URL: string
Example Link: string
Expression Push Link: string
Stream Destination: string
POST
URL:
https://login.NetroMedia.com/rest.svc/CreateChannel
Request Headers:
Content-type: application/json; charset=utf-8
Request Body:
{"Token":"61c94f66-b0de-43a0-a6cc-4e3f292cc881","ChannelName":"livechannel2","ChannelFormat":"WMS_LIVE_PULL", "ChannelSource":"http://16.56.54.56:8087"}
Next Section →
Deletes a channel.
public string DeleteChannel
( string Token,
string ChannelId,
string AccountId
)
Token: Guid
ChannelId: Guid
Optional
AccountId: Guid
Message: string
POST
URL:
https://login.NetroMedia.com/rest.svc/DeleteChannel
Request Headers:
Content-type: application/json; charset=utf-8
Request Body:
{"Token":"61c94f66-b0de-43a0-a6cc-4e3f292cc881","ChannelId":"7975c01e-9526-479d-9ee7-0fb62e22a297"}
Next Section →
Allows viewing of a channel and publishing to it.
public string StartChannel
( string Token,
string ChannelId,
string AccountId
)
Token: Guid
ChannelId: Guid
Optional
AccountId: Guid
Message: String
POST
URL:
https://login.NetroMedia.com/rest.svc/StartChannel
Request Headers:
Content-type: application/json; charset=utf-8
Request Body:
{"Token":"61c94f66-b0de-43a0-a6cc-4e3f292cc881","ChannelId":"7975c01e-9526-479d-9ee7-0fb62e22a297"}
Next Section →
Prevents viewing a channel or publishing to it.
public string StopChannel
( string Token,
string ChannelId,
string AccountId
)
Token: Guid
ChannelId: Guid
Optional
AccountId: Guid
Message: string
POST
URL:
https://login.NetroMedia.com/rest.svc/StopChannel
Request Headers:
Content-type: application/json; charset=utf-8
Request Body:
{"Token":"61c94f66-b0de-43a0-a6cc-4e3f292cc881","ChannelId":"7975c01e-9526-479d-9ee7-0fb62e22a297"}
Next Section →
Block viewing permissions for a channel, but continue to allow publishing
public string BlockViewing
( string Token,
string ChannelId,
string AccountId
)
Token: Guid
ChannelId: Guid
Optional
AccountId: Guid
Message:
POST
URL:
https://login.NetroMedia.com/rest.svc/BlockViewing
Request Headers:
Content-type: application/json; charset=utf-8
Request Body:
{"Token":"61c94f66-b0de-43a0-a6cc-4e3f292cc881","ChannelId":"7975c01e-9526-479d-9ee7-0fb62e22a297"}
Next Section →
Allow viewing permissions for a channel, and continue to allow publishing
public string AllowViewing
( string Token,
string ChannelId,
string AccountId
)
Token: Guid
ChannelId: Guid
Optional
AccountId: Guid
Message:
POST
URL:
https://login.NetroMedia.com/rest.svc/AllowViewing
Request Headers:
Content-type: application/json; charset=utf-8
Request Body:
{"Token":"61c94f66-b0de-43a0-a6cc-4e3f292cc881","ChannelId":"7975c01e-9526-479d-9ee7-0fb62e22a297"}
Next Section →
Shuts down a channel so that when it is requested again, it will reload. NOTE: This method is not available for WMS channels.
public string ReloadChannel
( string Token,
string ChannelId,
string AccountId
)
Token: Guid
ChannelId: Guid
Optional
AccountId: Guid
Message: string
POST
URL:
https://login.NetroMedia.com/rest.svc/ReloadChannel
Request Headers:
Content-type: application/json; charset=utf-8
Request Body:
{"Token":"61c94f66-b0de-43a0-a6cc-4e3f292cc881","ChannelId":"7975c01e-9526-479d-9ee7-0fb62e22a297"}
Next Section →
Returns a string of statistics relevant to a specified channel. These statistics are updated about once per minute.
public string GetChannelStats
( string Token,
string ChannelId,
string AccountId
)
ChannelId: Guid
Other - See Remarks
Token: Guid
AccountId: Guid
Connections: int
ThroughputKbps: int
CurrentStorage: string OR float (see remarks)
AllocatedStorage: string OR float (see remarks)
Status: string
POST
URL:
https://login.NetroMedia.com/rest.svc/GetChannelStats
Request Headers:
Content-type: application/json; charset=utf-8
Request Body:
{"Token":"61c94f66-b0de-43a0-a6cc-4e3f292cc881","ChannelId":"7975c01e-9526-479d-9ee7-0fb62e22a297"}
Next Section →
Returns whether an account’s channels are running, and their message bytes in rate. NOTE: This method is not available for WMS channels.
public string GetAllChannelRunningStatuses
( string Token,
string AccountId
)
Token: Guid
AccountId: Guid
An array of information, grouped by channel, is returned. For each channel, the following values are included:
ChannelId: Guid
ChannelName: string
Connections: string
IsRunning: boolean
PublisherCount: int
POST
URL:
https://login.NetroMedia.com/rest.svc/GetAllChannelRunningStatuses
Request Headers:
Content-type: application/json; charset=utf-8
Request Body:
{"AccountId":"61c94f66-b0de-43a0-a6cc-4e3f292cc881"}
Next Section →
Return channel information for a specified account, or, if no account is specified, return information on channels belonging to the logged-in account and its child accounts.
public string GetChannels
( string Token,
string AccountId
)
Token: Guid
Optional
AccountId: Guid
An array of information, grouped by channel, is returned. For each channel, the following values are included:
Channel Id: Guid
Channel Name: string
Channel Type: string
POST
URL:
https://login.NetroMedia.com/rest.svc/GetChannels
Request Headers:
Content-type: application/json; charset=utf-8
Request Body:
{"Token":"61c94f66-b0de-43a0-a6cc-4e3f292cc881"}
Next Section →
Returns relevant information for a specified active channel (not a suspended one)
public string GetPublishInfo
( string Token,
string ChannelId,
string AccountId
)
Token: Guid
ChannelId: string
Optional
AccountId: string
This function returns the information originally returned when the stream was created. See CreateChannel's return values.
POST
URL:
https://login.NetroMedia.com/rest.svc/GetPublishInfo
Request Headers:
Content-type: application/json; charset=utf-8
Request Body:
{"Token":"61c94f66-b0de-43a0-a6cc-4e3f292cc881","ChannelId":"7975c01e-9526-479d-9ee7-0fb62e22a297"}
Next Section →
Returns various types of usage reports for an account's channels. NOTE: This currently only returns the LISTENER_SECONDS report, but will include more in time.
public string GetReports
( string Token,
string StartDate,
string EndDate,
string SamplingFrequency,
string AccountId
)
Token: Guid
StartDate: string
EndDate: string
SamplingFrequency: string
Optional
AccountId: Guid
An array of information, grouped by channel, is returned. For each channel, the following values are included:
ChannelId: Guid
ChannelName: string
Period: Date
Data: float
POST
URL:
https://login.NetroMedia.com/rest.svc/GetReports
Request Headers:
Content-type: application/json; charset=utf-8
Request Body:
{"Token":"61c94f66-b0de-43a0-a6cc-4e3f292cc881","StartDate":"2012-5-9","EndDate":"2012-5-10","SamplingFrequency":"MONTH"}
The GoLiveAPI opens up the NetroMedia global network to partners and resellers by allowing broadcasters to create and control Live or on-Demand streams and distribute those streams around the world.
This service is built on the RESTful specification standards to take advantage of the superior design principles allowed in this sytem and enable ease of use through POST methods.
Using JSON structured parameters in your methods allows for improved readability over XML and allows you to more easily collect, transfer and process the return strings.
Adding the NetroMedia API to your product offerings brings a significant value-add proposition for broadcasters and content providers.
The primary implementation areas for this service are:
Contact NetroMedia at support@netromedia.com
or 888-818-3846 x702 for access and support.