FrameAppWS

<back to all web services

AccessURLTokenRQ

Requires Authentication
The following routes are available for this service:
All Verbs/Utilidades/AccessURLToken
<?php namespace dtos;

use DateTime;
use Exception;
use DateInterval;
use JsonSerializable;
use ServiceStack\{IReturn,IReturnVoid,IGet,IPost,IPut,IDelete,IPatch,IMeta,IHasSessionId,IHasBearerToken,IHasVersion};
use ServiceStack\{ICrud,ICreateDb,IUpdateDb,IPatchDb,IDeleteDb,ISaveDb,AuditBase,QueryDb,QueryDb2,QueryData,QueryData2,QueryResponse};
use ServiceStack\{ResponseStatus,ResponseError,EmptyResponse,IdResponse,ArrayList,KeyValuePair2,StringResponse,StringsResponse,Tuple2,Tuple3,ByteArray};
use ServiceStack\{JsonConverters,Returns,TypeContext};


class AccessURLTokenRS implements JsonSerializable
{
    public function __construct(
        /** @var string|null */
        public ?string $Respuesta=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['Respuesta'])) $this->Respuesta = $o['Respuesta'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->Respuesta)) $o['Respuesta'] = $this->Respuesta;
        return empty($o) ? new class(){} : $o;
    }
}

class AccessURLTokenRQ implements JsonSerializable
{
    public function __construct(
        /** @var string|null */
        public ?string $Id=null,
        /** @var string|null */
        public ?string $Operacion=null,
        /** @var string|null */
        public ?string $Login=null,
        /** @var string|null */
        public ?string $NombreApp=null,
        /** @var Object|null */
        public ?Object $Data=null,
        /** @var float */
        public float $IdEmpresa=0.0,
        /** @var float */
        public float $IdSistema=0.0,
        /** @var string|null */
        public ?string $NombreUsuario=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['Id'])) $this->Id = $o['Id'];
        if (isset($o['Operacion'])) $this->Operacion = $o['Operacion'];
        if (isset($o['Login'])) $this->Login = $o['Login'];
        if (isset($o['NombreApp'])) $this->NombreApp = $o['NombreApp'];
        if (isset($o['Data'])) $this->Data = JsonConverters::from('Object', $o['Data']);
        if (isset($o['IdEmpresa'])) $this->IdEmpresa = $o['IdEmpresa'];
        if (isset($o['IdSistema'])) $this->IdSistema = $o['IdSistema'];
        if (isset($o['NombreUsuario'])) $this->NombreUsuario = $o['NombreUsuario'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->Id)) $o['Id'] = $this->Id;
        if (isset($this->Operacion)) $o['Operacion'] = $this->Operacion;
        if (isset($this->Login)) $o['Login'] = $this->Login;
        if (isset($this->NombreApp)) $o['NombreApp'] = $this->NombreApp;
        if (isset($this->Data)) $o['Data'] = JsonConverters::to('Object', $this->Data);
        if (isset($this->IdEmpresa)) $o['IdEmpresa'] = $this->IdEmpresa;
        if (isset($this->IdSistema)) $o['IdSistema'] = $this->IdSistema;
        if (isset($this->NombreUsuario)) $o['NombreUsuario'] = $this->NombreUsuario;
        return empty($o) ? new class(){} : $o;
    }
}

PHP AccessURLTokenRQ DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /Utilidades/AccessURLToken HTTP/1.1 
Host: soluser-recaudo.sgsas.co 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"Id":"String","Operacion":"String","Login":"String","NombreApp":"String","Data":{},"IdEmpresa":0,"IdSistema":0,"NombreUsuario":"String"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"Respuesta":"String"}