D
D
droit1742017-03-20 08:28:28
API
droit174, 2017-03-20 08:28:28

How to contact api beeline?

I can't deal with cloudpbx.beeline.ru. I want to get a list of records.
there is a WADL service: https://cloudpbx.beeline.ru/api/pub?_wadl
issues

<application xmlns="http://wadl.dev.java.net/2009/02" xmlns:tns="http://client.pub.api.cloudpbx.beeline.ru" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://wadl.dev.java.net/2009/02 wadl.xsd">
    <grammars>
        <xs:schema xmlns:tns="http://client.pub.api.cloudpbx.beeline.ru" xmlns:xs="http://www.w3.org/2001/XMLSchema" attributeFormDefault="unqualified" elementFormDefault="unqualified" targetNamespace="http://client.pub.api.cloudpbx.beeline.ru">
            <xs:element name="Abonent">
                <xs:complexType>
                    <xs:sequence>
                        <xs:element minOccurs="0" name="userId" type="xs:string"/>
                        <xs:element minOccurs="0" name="firstName" type="xs:string"/>
                        <xs:element minOccurs="0" name="lastName" type="xs:string"/>
                        <xs:element minOccurs="0" name="email" type="xs:string"/>
                        <xs:element minOccurs="0" name="department" type="xs:string"/>
                        <xs:element minOccurs="0" name="extension" type="xs:string"/>
                        <xs:element minOccurs="0" name="phone" type="xs:string"/>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
            <xs:element name="AbonentList">
                <xs:complexType>
                    <xs:sequence>
                        <xs:element maxOccurs="unbounded" minOccurs="0" name="list" ref="tns:Abonent"/>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
            <xs:element name="ListCallRecordRequest">
                <xs:complexType>
                    <xs:sequence>
                        <xs:element maxOccurs="1" minOccurs="1" name="pageNumber" type="xs:long"/>
                        <xs:element maxOccurs="1" minOccurs="1" name="pageSize" type="xs:long"/>
                        <xs:element maxOccurs="1" minOccurs="0" name="userId" type="xs:string"/>
                        <xs:element maxOccurs="1" minOccurs="0" name="phone" type="xs:string"/>
                        <xs:element maxOccurs="1" minOccurs="0" name="direction" type="tns:Direction"/>
                        <xs:element maxOccurs="1" minOccurs="0" name="dateFrom" type="xs:dateTime"/>
                        <xs:element maxOccurs="1" minOccurs="0" name="dateTo" type="xs:dateTime"/>
                        <xs:element maxOccurs="1" minOccurs="0" name="durationFrom" type="xs:long"/>
                        <xs:element maxOccurs="1" minOccurs="0" name="durationTo" type="xs:long"/>
                        <xs:element maxOccurs="1" minOccurs="1" name="sort">
                            <xs:complexType>
                                <xs:sequence>
                                    <xs:element maxOccurs="1" minOccurs="1" name="direction" type="tns:SortDirection"/>
                                    <xs:element maxOccurs="1" minOccurs="1" name="field" type="tns:ListCallRecordRequestSortField"/>
                                </xs:sequence>
                            </xs:complexType>
                        </xs:element>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
            <xs:element name="ListCallRecordResponse">
                <xs:complexType>
                    <xs:sequence>
                        <xs:element name="totalRecordQuantity" type="xs:long"/>
                        <xs:element maxOccurs="unbounded" minOccurs="0" name="list" ref="tns:CallRecord"/>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
            <xs:element name="CallRecord">
                <xs:complexType>
                    <xs:sequence>
                        <xs:element maxOccurs="1" minOccurs="0" name="recordId" type="xs:long"/>
                        <xs:element maxOccurs="1" minOccurs="0" name="abonent" ref="tns:Abonent"/>
                        <xs:element maxOccurs="1" minOccurs="0" name="phone" type="xs:string"/>
                        <xs:element maxOccurs="1" minOccurs="0" name="callDirection" type="tns:Direction"/>
                        <xs:element maxOccurs="1" minOccurs="0" name="date" type="xs:dateTime"/>
                        <xs:element maxOccurs="1" minOccurs="0" name="duration" type="xs:long"/>
                        <xs:element maxOccurs="1" minOccurs="0" name="fileSize" type="xs:long"/>
                        <xs:element maxOccurs="1" minOccurs="0" name="comment" type="xs:string"/>
                        <xs:element maxOccurs="1" minOccurs="0" name="externalId" type="xs:string"/>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
            <xs:element name="AgentStatusResponce">
                <xs:complexType>
                    <xs:sequence>
                        <xs:element maxOccurs="1" minOccurs="1" name="status" type="tns:AgentStatus"/>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
            <xs:simpleType name="ListCallRecordRequestSortField">
                <xs:restriction base="xs:string">
                    <xs:enumeration value="Date"/>
                    <xs:enumeration value="Phone"/>
                    <xs:enumeration value="AbonentFio"/>
                    <xs:enumeration value="Comment"/>
                    <xs:enumeration value="Duration"/>
                    <xs:enumeration value="Direction"/>
                </xs:restriction>
            </xs:simpleType>
            <xs:simpleType name="Direction">
                <xs:restriction base="xs:string">
                    <xs:enumeration value="INB"/>
                    <xs:enumeration value="OUT"/>
                </xs:restriction>
            </xs:simpleType>
            <xs:simpleType name="SortDirection">
                <xs:restriction base="xs:string">
                    <xs:enumeration value="ASC"/>
                    <xs:enumeration value="DESC"/>
                </xs:restriction>
            </xs:simpleType>
            <xs:simpleType name="AgentStatus">
                <xs:restriction base="xs:string">
                    <xs:enumeration value="ONLINE"/>
                    <xs:enumeration value="OFFLINE"/>
                    <xs:enumeration value="BREAK"/>
                </xs:restriction>
            </xs:simpleType>
        </xs:schema>
    </grammars>
    <resources base="https://cloudpbx.beeline.ru/api/pub">
        <resource id="ClientPublicApiResource" path="/client">
            <resource path="/abonent">
                <method id="listAbonent" name="GET">
                    <response>
                        <representation element="tns:AbonentList" mediaType="application/xml"/>
                    </response>
                </method>
            </resource>
            <resource path="/abonent/{numberOrExtensionOrUserId}">
                <param name="numberOrExtensionOrUserId" style="template" type="xs:string"/>
                <method id="getAbonent" name="GET">
                    <response>
                        <representation element="tns:Abonent" mediaType="application/xml"/>
                    </response>
                </method>
            </resource>
            <resource path="/abonent/{userId}/agentStatus">
                <param name="userId" style="template" type="xs:string"/>
                <method id="getAgentStatus" name="GET">
                    <response>
                        <representation element="tns:AgentStatusResponce" mediaType="application/xml"/>
                    </response>
                </method>
            </resource>
            <resource path="/abonent/{userId}/agentStatus/{status}">
                <param name="userId" style="template" type="xs:string"/>
                <param name="status" style="template" type="tns:AgentStatus"/>
                <method id="setAgentStatus" name="PUT">
                    <response>
                        <representation/>
                    </response>
                </method>
            </resource>
            <resource path="/call/record">
                <resource path="/file/{recordIdOrExternalId}">
                    <param name="recordIdOrExternalId" style="template" type="xs:string"/>
                    <method id="getCallRecord" name="GET">
                        <response>
                            <representation mediaType="application/octeat-stream"/>
                        </response>
                    </method>
                </resource>
                <resource path="/list">
                    <method id="listCallRecord" name="PUT">
                        <request>
                            <representation element="tns:ListCallRecordRequest" mediaType="application/xml"/>
                        </request>
                        <response>
                            <representation element="tns:ListCallRecordResponse" mediaType="application/xml"/>
                        </response>
                    </method>
                </resource>
            </resource>
        </resource>
    </resources>
</application>

the link https://cloudpbx.beeline.ru/api/pub/client/abonent displays a list of subscribers.
but I can't get the list of records.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question