Methods: Chat settings | Create chat message | Delete a chat message | Update a chat message | Create a chat message |
Chat settings
Input parameters
Required parameters:
Optional parameters:
Sample query:
https://boomstream.com/api/chat/init?apikey=[API_KEY]&code=XXXXXXXX&enabled=1&owner_nickname=Administrator&last_rows=10&default_message=Start%20message
Sample response:
<?xml version="1.0" encoding="utf-8"?> <Response> <IsEnabled>true</IsEnabled> <SaveNickname>true</SaveNickname> <ShowUsers>false</ShowUsers> <OwnerNickname>User</OwnerNickname> <LastRows>10</LastRows> <DefaultMessage>Message</DefaultMessage> <Status>Success</Status> <Version>1.0</Version> <Versions> <Item> <version>1.0</version> <description>Boomstream API v.1.0 loads by default</description> </Item> <Item> <version>1.1</version> <description>Boomstream API v.1.1. Add &ver=1.1 to the HTTP request to use it. Change log: it is changed the response format for the method - ppv/listBuyers</description> </Item> </Versions> <RequestURI>/api/chat/init?apikey=286b9d5caba7ff5f013c814d0ec60a8e&code=cff3vgXP&enabled=1&owner_nickname=User&last_rows=10&default_message=Message&show_users</RequestURI> </Response>
Create a chat message.
Input parameters
Обязательные параметры:
Sample query:
https://boomstream.com/api/chat/createMessage?apikey=[API_KEY]&code=XXXXXXXX&username=user&message=test
Sample response:
<?xml version="1.0" encoding="utf-8"?> <Response> <Message>Message is created</Message> <Status>Success</Status> <Version>1.0</Version> <Versions> <Item> <version>1.0</version> <description>Boomstream API v.1.0 loads by default</description> </Item> <Item> <version>1.1</version> <description>Boomstream API v.1.1. Add &ver=1.1 to the HTTP request to use it. Change log: it is changed the response format for the method - ppv/listBuyers</description> </Item> </Versions> <RequestURI>/api/chat/createMessage?apikey=286b9d5caba7ff5f013c814d0ec60a8e&code=cff3vgXP&username=usr&message=Test</RequestURI> </Response>
Chat message info
Input parameters
Required parameters:
Optional parameters:
Sample query:
https://boomstream.com/api/chat/info?apikey=[API_KEY]&code=XXXXXXXX&start=2019-01-01&end=2020-05-21&order=asc
Sample response:
<?xml version="1.0" encoding="utf-8"?> <Response> <Period>01.01.2021 - 01.12.2021</Period> <Start>01.01.2021</Start> <End>01.12.2021</End> <Page>0</Page> <PageLimit>1000</PageLimit> <PageCount>0</PageCount> <ItemCount>0</ItemCount> <ItemFormat> <date>Date</date> <code>Message code</code> <nickname>Nickname</nickname> <identity>Identity of user</identity> <message>Message</message> </ItemFormat> <Items/> <Status>Success</Status> <Version>1.0</Version> <Versions> <Item> <version>1.0</version> <description>Boomstream API v.1.0 loads by default</description> </Item> <Item> <version>1.1</version> <description>Boomstream API v.1.1. Add &ver=1.1 to the HTTP request to use it. Change log: it is changed the response format for the method - ppv/listBuyers</description> </Item> </Versions> <RequestURI>/api/chat/info?apikey=286b9d5caba7ff5f013c814d0ec60a8e&code=cff3vgXP&start=2021-01-01&end=2021-12-01&order=asc&page</RequestURI> </Response>
Update a chat message.
Input parameters
Обязательные параметры:
Sample query:
https://boomstream.com/api/chat/updateMessage?[API_KEY]&code=XXXXXXXX&code_message=[CODE_MESSAGE]&message=update
Sample response:
<?xml version="1.0" encoding="utf-8"?> <Response> <date>2021-11-03 11:23:54</date> <codeMessage>MZDupnoSVWYDW77jnWrKQCmAiRA7aSqb</codeMessage> <nickname>1</nickname> <identity>admin@boomstream.com</identity> <isOwner>false</isOwner> <Status>Success</Status> <Version>1.0</Version> <Versions> <Item> <version>1.0</version> <description>Boomstream API v.1.0 loads by default</description> </Item> <Item> <version>1.1</version> <description>Boomstream API v.1.1. Add &ver=1.1 to the HTTP request to use it. Change log: it is changed the response format for the method - ppv/listBuyers</description> </Item> </Versions> <RequestURI>/api/chat/updateMessage?apikey=286b9d5caba7ff5f013c814d0ec60a8e&code=cff3vgXP&code_message=MZDupnoSVWYDW77jnWrKQCmAiRA7aSqb&message=upd</RequestURI> </Response>
Delete a chat message
Input parameters
Required parameters:
Sample query:
https://boomstream.com/api/chat/deleteMessage?[API_KEY]&code=XXXXXXXX&code_message=[CODE_MESSAGE]
Sample response:
<?xml version="1.0" encoding="utf-8"?> <Response> <Message>Chat message is removed from history</Message> <Status>Success</Status> <Version>1.0</Version> <Versions> <Item> <version>1.0</version> <description>Boomstream API v.1.0 loads by default</description> </Item> <Item> <version>1.1</version> <description>Boomstream API v.1.1. Add &ver=1.1 to the HTTP request to use it. Change log: it is changed the response format for the method - ppv/listBuyers</description> </Item> </Versions> <RequestURI>/api/chat/deleteMessage?apikey=286b9d5caba7ff5f013c814d0ec60a8e&code=cff3vgXP&code_message=MZDupnoSVWYDW77jnWrKQCmAiRA7aSqb</RequestURI> </Response>