Methods: create | update | delete | list | addmedia | deletemedia | listmedia | addbuyer | updatebuyer | deletebuyer | listbuyers | contacts | updatecontacts
create subscription.
Input parameters
Required parameters:
Required parameters (partly optional):
Optional parameters:
Output parameters
Sample query:
https://boomstream.com/api/ppv/create?apikey=[API_KEY]&name=ppv&type=group&cost=100.00&period=1&description=some%20ftext
Sample response:
<Response> <Items> <Item> <Code>X150Kl1d</Code> <Name>ppv</Name> <Type>group</Type> <Cost>100.00</Cost> <Period>1</Period> <AccessExpirationDate>2018-12-12 23:59:00</AccessExpirationDate> <Description>some text</Description> </Item> </Items> <Status>Success</Status> </Response>
Update information about subscription.
Input parameters
Required parameters:
Optional parameters:
Output parameters
Sample query:
https://boomstream.com/api/ppv/update?apikey=[API_KEY]&code=X150Kl1d&name=payperview&cost=500.00&period=10&description=text
Sample response:
<Response> <Items> <Item> <Code>X150Kl1d</Code> <Name>payperview</Name> <Cost>500.00</Cost> <Period>10</Period> <AccessExpirationDate>2018-12-12 23:59:00</AccessExpirationDate> <Description>text</Description> </Item> </Items> <Status>Success</Status> </Response>
Delete subscription.
Input parameters
Required parameters:
Sample query:
https://boomstream.com/api/ppv/delete?apikey=[API_KEY]&code=X150Kl1d
Sample response:
<Response> <Status>Success</Status> </Response>
Get list of subscriptions.
Input parameters
Required parameters:
Sample query:
https://boomstream.com/api/ppv/list?apikey=[API_KEY]
Sample response:
<Response> <Items> <Item> <Name>ppv</Name> <Code>X150Kl1d</Code> <Cost>100.00</Cost> <Period>100.00</Period> <AccessExpirationDate>2018-12-12 23:59:00</AccessExpirationDate> <AmountFiles>4</AmountFiles> <Type>group</Type> <AddedDate>2015-12-12 23:23:23</AddedDate> <Description>Test</Description> </item> </Items> <Status>Success</Status> </Response>
Add media file to subscription.
Input parameters
Required parameters:
Sample query:
https://boomstream.com/api/ppv/addmedia?apikey=[API_KEY]&code=X150Kl1d&media=xxxxxxxx
Sample response:
<Response> <Medias> <Item> <Title>Тестовое видео</Title> <Code>xxxxxxxx</Code> <PublishKey></PublishKey> <OnlineStatus>False</OnlineStatus> <RecordStatus>False</RecordStatus> <Concurrent>0</Concurrent> <CreationDate>2015-01-29 15:05:58</CreationDate> <Type>video</Type> <Width>640</Width> <Height>480</Height> <MediaStatus>Done</MediaStatus> <Duration>14</Duration> <PlayerCode>&lt;iframe ...... &lt;/iframe&gt;</PlayerCode> <DownloadLink>https://bs.boomstream.com/balancer/hash:1234567890/xxxxxxxx.orig</DownloadLink> <Poster> <Code>xxxxxxxx-a1</Code> <Width>640</Width> <Height>480</Height> <Url>https://bs.boomstream.com/balancer/xxxxxxxx-a1.jpg</Url> </Poster> <Transcodes> <Item> <Code>xxxxxxxx-f33ubar5</Code> <Title>240p</Title> <Width>320</Width> <Height>240</Height> <PseudoMP4>https://bs.boomstream.com/balancer/xxxxxxxx-f33ubar5.mp4</PseudoMP4> <AppleHLS>https://bs.boomstream.com/balancer/xxxxxxxx-f33ubar5/playlist.m3u8</AppleHLS> </Item> </Transcodes> <Adaptive> <AppleHLS>https://bs.boomstream.com/adaptive/xxxxxxxx/playlist.m3u8</AppleHLS> </Adaptive> <Screenshots> <Item> <Code>xxxxxxxx-a1</Code> <Width>640</Width> <Height>480</Height> <Url>https://bs.boomstream.com/balancer/xxxxxxxx-a1.jpg</Url> </Item> </Screenshots> </Item> </Medias> <Status>Success</Status> </Response>
Delete media from subscription.
Input parameters
Required parameters:
Sample query:
https://boomstream.com/api/ppv/deletemedia?apikey=[API_KEY]&code=X150Kl1d&media=xxxxxxxx
Sample response:
<Response> <Status>Success</Status> </Response>
Get list of media-files from subscription.
Input parameters
Required parameters:
Optional parameters:
Sample query:
https://boomstream.com/api/ppv/listmedia?apikey=[API_KEY]&code=X150Kl1d
Sample response:
<Response> <Medias> <Item> <Title>Тестовое видео</Title> <Code>xxxxxxxx</Code> <PublishKey></PublishKey> <OnlineStatus>False</OnlineStatus> <RecordStatus>False</RecordStatus> <Concurrent>0</Concurrent> <CreationDate>2015-01-29 15:05:58</CreationDate> <Type>video</Type> <Width>640</Width> <Height>480</Height> <MediaStatus>Done</MediaStatus> <Duration>14</Duration> <PlayerCode>&lt;iframe ...... &lt;/iframe&gt;</PlayerCode> <DownloadLink>https://bs.boomstream.com/balancer/hash:1234567890/xxxxxxxx.orig</DownloadLink> <Poster> <Code>xxxxxxxx-a1</Code> <Width>640</Width> <Height>480</Height> <Url>https://bs.boomstream.com/balancer/xxxxxxxx-a1.jpg</Url> </Poster> <Transcodes> <Item> <Code>xxxxxxxx-f33ubar5</Code> <Title>240p</Title> <Width>320</Width> <Height>240</Height> <PseudoMP4>https://bs.boomstream.com/balancer/xxxxxxxx-f33ubar5.mp4</PseudoMP4> <AppleHLS>https://bs.boomstream.com/balancer/xxxxxxxx-f33ubar5/playlist.m3u8</AppleHLS> </Item> </Transcodes> <Adaptive> <AppleHLS>https://bs.boomstream.com/adaptive/xxxxxxxx/playlist.m3u8</AppleHLS> </Adaptive> <Screenshots> <Item> <Code>xxxxxxxx-a1</Code> <Width>640</Width> <Height>480</Height> <Url>https://bs.boomstream.com/balancer/xxxxxxxx-a1.jpg</Url> </Item> </Screenshots> </Item> </Medias> <Status>Success</Status> </Response>
Add customer to subscription.
Input parameters
Required parameters:
Alternative parameters:
Optional parameters:
If both custom_url and use_subscription_custom_url are specified then custom_url has more priority.
Sample query:
https://boomstream.com/api/ppv/addbuyer?apikey=[API_KEY]&code=X150Kl1d&media=xxxxxxxx&email=example@example.com¬ification=1
Sample response:
<Response> <Items> <Item> <Email>example@example.com</Email> <Hash>123456789</Hash> <Period>30</Period> <AccessStartDate>2018-12-11 23:59:00</AccessStartDate> <AccessExpirationDate>2018-12-12 23:59:00</AccessExpirationDate> <DatePurchase>2015-01-29 15:05:58</DatePurchase> </Item> </Items> <Status>Success</Status> </Response>
Update of access password
Input parameters
Required parameters:
Optional parameters:
Sample query:
https://boomstream.com/api/ppv/addbuyer?apikey=[API_KEY]&code=X150Kl1d&hash=12345678&activation=4&access_expire=2018-12-31
Sample response:
<Response> <Message>Recovery code is updated</Message> <Status>Success</Status> </Response>
Delete of access password.
Input parameters
Required parameters:
Sample query:
https://boomstream.com/api/ppv/addbuyer?apikey=[API_KEY]&code=X150Kl1d&hash=12345678
Sample response:
<Response> <Message>Recovery code is deleted</Message> <Status>Success</Status> </Response>
List of all customers of subscription.
Current version is 1.1
Input parameters
Required parameters:
Optional parameters:
Sample query:
https://boomstream.com/api/ppv/listbuyers?apikey=[API_KEY]&code=X150Kl1d&media=xxxxxxxx&email=buyer@example.com&ver=1.1
Sample response:
<Response> <Items> <Item> <Email>example@example.com</Email> <Hash>123456789</Hash> <Period>30</Period> <AccessExpirationDate>2018-12-12 23:59:00</AccessExpirationDate> <DatePurchase>2015-01-29 15:05:58</DatePurchase> </Item> </Items> <Status>Success</Status> </Response>
Show seller's contacts.
Input parameters
Required parameters:
Output parameters
Sample query:
https://boomstream.com/api/ppv/contacts?apikey=[API_KEY]
Sample response:
<Response> <Name>Alex</Name> <Phone>+0 000 000 000</Phone> <Email/> <Site/> <Description/> <Status>Success</Status> </Response>
Update seller's contacts.
Input parameters
Required parameters:
Required parameters (partly optional):
Optional parameters:
Output parameters
Sample query:
https://boomstream.com/api/ppv/updatecontacts?apikey=[API_KEY]&name=Alex&phone=+0 000 000 000
Sample response:
<Response> <Name>Alex</Name> <Phone>+0 000 000 000</Phone> <Email/> <Site/> <Description/> <Message>Updated success</Message> <Status>Success</Status> </Response>