...
- git clone https://github.com/exxon23/pbx-remote.git
- npm install
- npm start (starts application on localhost:3000)
API Documentation
TBDDocumentation is based on GraphQL Playground - https://www.apollographql.com/docs/apollo-server/features/graphql-playground/
Mutation
sendRemoteCommand - Send remote command
Subscriptions
callEvents - Incoming command notification
API endpoint https://ipbxapi.voipex.io/graphql
Get token in browser console (DevTools - F12)
Blok kódu | ||||||
---|---|---|---|---|---|---|
| ||||||
fetch('https://restapi.ipex.cz/v1/sso/login', {
method: 'POST',
body: JSON.stringify({
email: 'your_login i.e. jiri.nova@ipex.cz',
password: 'your_password'
})
})
.then(res => res.json())
.then(({access_token}) => console.log(`"Authorization": "Bearer ${access_token}"`)) |
Put output to the HTTP Headers
FAQ
Q: What is the difference between click2dial and RCC?
...