olos_sdk 1.0.47 copy "olos_sdk: ^1.0.47" to clipboard
olos_sdk: ^1.0.47 copied to clipboard

unlistedoutdated

An interface between interfaces and the Olos system

example/olos_sdk_example.dart

import 'dart:developer';

import '../lib/main.dart';

void main() {
  String server = 'http://10.15.10.38';
  Olos olos = Olos();
  var addrs = {
    'wsAgentCmd': '$server/WebAPIAgentControl_Token/AgentCommand/',
    'wsAgentEvt': '$server/WebAPIAgentControl_Token/AgentEvent/',
    'WsAgentCloud': '$server/WebAPIAgentControl_Token/CloudAgent/',
    'wsMailingCmd': '$server/WebAPIMailingControl_Token/MailingCommand/',
    'wsAgentConfig': '$server/WebAPIConfiguration_Token/AgentConfig/',
    'wsVoiceSupport':
        '$server/WsVoiceSupportIntegration/WsVoiceSupportIntegration.asmx', //Esse aqui ainda não esta desenvolvido pelo Backend da Olos
    'WebAPIAgentControl': '$server/WebAPIAgentControl_Token/',
    'wsSoftphone': '$server/WebAPISoftphone_Token/Softphone/',
    'wsMcx': '$server/WsMcx_Token/wsmcx/Mcx/',
    'wsRecordingRetrieve':
        '$server/WebApiRecordingRetrieve_Token/RecordTextComm/',
  };
  olos.createOlos(addrs, 'agente1', 'olos', '9f57f547a8ea4ecfbd2525a0cccb0b58',
      'x_wor5KTOPTIuFQBywo5TWFQfrN5FoCFcqn_eo', true);
  OlosAgentWS ws = OlosAgentWS();
  ws.agentAuthentication('agente1', 'olos', displayAgentID);
}

void displayAgentID(String agentID) => log('ARNALDO $agentID');
1
likes
0
points
75
downloads

Publisher

unverified uploader

Weekly Downloads

An interface between interfaces and the Olos system

Homepage

License

unknown (license)

Dependencies

dio, dio_logger, js, json_serializable, jwt_decode, phoenix_wings, short_uuids

More

Packages that depend on olos_sdk