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

unlistedoutdated

An interface between interfaces and the Olos system

example/olos_sdk_example.dart

import 'dart:developer';

import 'package:olos_sdk/main.dart';

void main() {
  String server = 'http://10.15.10.38';
  Olos olos = Olos();
  var addrs = {
    'wsAgentCmd': '$server/WebApiAgentControl_5.40.0/AgentCommand/',
    'wsAgentEvt': '$server/WebApiAgentControl_5.40.0/AgentEvent/',
    'WsAgentCloud': '$server/WebApiAgentControl_5.40.0/CloudAgent/',
    'wsMailingCmd': '$server/WebApiMailingControl_5.40.0/MailingCommand/',
    'wsAgentConfig': '$server/WebApiConfiguration_5.40.0/AgentConfig/',
    'wsVoiceSupport': '$server/WsVoiceSupportIntegration/WsVoiceSupportIntegration.asmx', //Esse aqui ainda não esta desenvolvido pelo Backend da Olos
    'WebAPIAgentControl': '$server/WebApiAgentControl_5.40.0/',
    'wsSoftphone': '$server/WebAPISoftphone_5.40.0/Softphone/',
    'wsMcx': '$server/WsMcx/wsmcx/Mcx/',
    'wsRecordingRetrieve': '$server/WebAPIRecordingRetrieve_5.40.0/RecordTextComm/',
  };
  olos.createOlos(addrs, 'agente1', 'olos', '37bf71372e864ccdb06c308aad3a6d5e',
      'CcsiZZ8Cc3I2pU4JPw_T8K6jBkcaxHw-Zwk2ui-U04M', true, loginCallback);
  // 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, loginCallback);
  // OlosAgentWS ws = OlosAgentWS();
  // ws.agentAuthentication('agente1', 'olos', displayAgentID);
}

void loginCallback(response) {
  log('$response');
}

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

Publisher

unverified uploader

Weekly Downloads

An interface between interfaces and the Olos system

Homepage

License

unknown (license)

Dependencies

dio, js, json_serializable, jwt_decode, phoenix_wings, pretty_dio_logger, short_uuids

More

Packages that depend on olos_sdk