Esempla
  • Lista metodelor
  • Description
  • FAQ
  • SSO
    • Description
    • API
    • API Admin
    • FAQ
    • API Partner
  • Invoicing
    • Description
    • API
    • FAQ
  • SNS
    • Description
    • API
    • API Partner
    • API Admin
    • FAQ
  • VOIP
    • Untitled
Powered by GitBook
On this page

Was this helpful?

  1. SNS

API

Generam token

GET https://admin.duae.esempla.srl/api/v1/login

Path Parameters

Name
Type
Description

Authorization

string

Metoda de autorizare "Basic Auth"

Request Body

Name
Type
Description

Username

string

Numele secret al Organizatiei (din sso)

Password

string

Tokenul secret al Proectului (din sso)

{
    "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsImp0aSI6IjEifQ.eyJpc3MiOiIxIiwiYXVkIjoiMSIsImp0aSI6IjEiLCJpYXQiOjE1NTQ3MTE2NjgsIm5iZiI6MTU1NDcxMTY2OCwiZXhwIjoxNTU0NzE1MjY4LCJ0ZXRzUHJvdmlkZXIxIjpudWxsfQ.ANTAox50qRJLRnLU6EPv7dY6gGRATAjaRaJyz0ICXM8"
}
{
    "name": "Unauthorized",
    "message": "Your request was made with invalid credentials.",
    "code": 0,
    "status": 401
}
{
    "name": "Not Found",
    "message": "Page not found.",
    "code": 0,
    "status": 404,
    "previous": {
        "name": "Invalid Route",
        "message": "Unable to resolve the request \"v1/loginn\".",
        "code": 0
    }
}

GET https://admin.duae.esempla.srl/api/v1/getDuaeTemplate

Path Parameters

Name
Type
Description

Authorization

string

Metoda de autorizare "Bearer Token"

Request Body

Name
Type
Description

Token

string

Indicam tokenul

{
    "payload": {
        "template": "[{\"object\":\"Object\",\"value\":[{\"simple\":\"item\"}]},{\"simple\":\"item\"}]"
    },
    "error": null
}
{
    "name": "Unauthorized",
    "message": "Your request was made with invalid credentials.",
    "code": 0,
    "status": 401,
    "type": "yii\\web\\UnauthorizedHttpException"
}
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8" />
        <title>Not Found (#404)</title>
        <style>
        body {
            font: normal 9pt "Verdana";
            color: #000;
            background: #fff;
        }

        h1 {
            font: normal 18pt "Verdana";
            color: #f00;
            margin-bottom: .5em;
        }

        h2 {
            font: normal 14pt "Verdana";
            color: #800000;
            margin-bottom: .5em;
        }

        h3 {
            font: bold 11pt "Verdana";
        }

        p {
            font: normal 9pt "Verdana";
            color: #000;
        }

        .version {
            color: gray;
            font-size: 8pt;
            border-top: 1px solid #aaa;
            padding-top: 1em;
            margin-bottom: 1em;
        }
    </style>
    </head>
    <body>
        <h1>Not Found (#404)</h1>
        <h2>Page not found.</h2>
        <p>
        The above error occurred while the Web server was processing your request.
    </p>
        <p>
        Please contact us if you think this is a server error. Thank you.
    </p>
        <div class="version">
        2019-06-27 08:55:22    </div>
    </body>
</html>

GET https://admin.duae.esempla.srl/api/v1/getOrganization?user_id=999999999

Path Parameters

Name
Type
Description

string

PreviousDescriptionNextAPI Partner

Last updated 5 years ago

Was this helpful?