Schlagwörter: 

Ansicht von 1 Antwort-Thema
  • Autor
    Beiträge
    • #31791
      ivan ascas
      Teilnehmer

        OTOBO version: 10.1
        OTOBO installation type: apache 2

        I’m using postman to call OTOBO webservices and it responds:
        {
        “Error”: {
        “ErrorCode”: “TicketCreate.AuthFail”,
        “ErrorMessage”: “TicketCreate: User could not be authenticated!”
        }
        }

         

        Request :

        url : https://tickets.consejocaba.org.ar/otobo/nph-genericinterface.pl/Webservice/ws1/TicketCreate

         

         

        {
        “UserLogin”: “ignecco”,
        “Password”: “xxxxx”,
        “Ticket”: {
        “Title”: “created by Webservice request”,
        “QueueID”: 5,
        “CustomerUser”: “CustomerUser”,
        “State”: “new”,
        “PriorityID”: 1
        },
        “Article”: {
        “CommunicationChannel”: “Email”,
        “From”: “test@test.de”,
        “Subject”: “Webservice Create Example”,
        “Body”: “This was created by a Webservice request!”,
        “ContentType”: “text/html charset=utf-8”
        }
        }

        Is this user to be used a special service user or what user is it?
        I used my user with which I access the OTOBO system for front-end use, and that one doesn’t work for me for postman

      • #31798
        marcel-graf
        Teilnehmer

          Hi Ivan,

          here a Postman example:

          Post:   http://hostname/otobo/nph-genericinterface.pl/Webservice/TicketCreate/TicketCreate

          {
          “UserLogin”:”webservice”,
          “Password”:”webservice”,
          “Ticket”:{
          “Title”:”Helpdesk my text”,
          “QueueID”:”10″,
          “LockID”:”1″,
          “TypeID”:”4″,
          “ServiceID”:””,
          “SLAID”:””,
          “StateID”:”4″,
          “PriorityID”:”3″,
          “CustomerUser”:”my_customer_user_email_adress@test.de”
          },
          “Article”:{
          “ArticleTypeID”:”8″,
          “SenderTypeID”:”1″,
          “From”:”marcel.graf@erf24.de”,
          “Subject”:”Helpdesk my text”,
          “Body”:”Hallo IT-Support,<br /><br />bitte das Kennwort zurücksetzen.<br /><br /> Danke”,
          “ContentType”:””,
          “MimeType”:”text/html”,
          “Charset”:”UTF8″
          }
          }

          Greetings,

          Marcel

           

           

           

          • Diese Antwort wurde geändert vor 1 Monat, 1 Woche von marcel-graf.
          • #31800
            marcel-graf
            Teilnehmer

              and the Webservice: (i used the Otobo Version 11.0.3)

               


              Debugger:
              DebugThreshold: debug
              TestMode: ‘0’
              Description: ”
              FrameworkVersion: 11.0.3
              Provider:
              Operation:
              TicketCreate:
              Description: ”
              IncludeTicketData: ‘0’
              MappingInbound:
              Type: Simple
              MappingOutbound:
              Type: Simple
              Type: Ticket::TicketCreate
              Transport:
              Config:
              AdditionalHeaders: ~
              KeepAlive: ”
              MaxLength: ‘10000000’
              RouteOperationMapping:
              TicketCreate:
              RequestMethod:
              – POST
              Route: /TicketCreate
              Type: HTTP::REST
              RemoteSystem: ”
              Requester:
              Transport:
              Type: ”

        Ansicht von 1 Antwort-Thema
        • Du musst angemeldet sein, um auf dieses Thema antworten zu können.