chico-rei/smartlog-api

1.0.3 2023-05-02 18:36 UTC

This package is auto-updated.

Last update: 2024-08-31 00:30:12 UTC


README

API计算运费价值、订单追踪及Smartlog平台支持的CEP的API

此PHP包由Swagger Codegen项目自动生成。

  • API版本:2.0.1
  • 构建包:io.swagger.codegen.languages.PhpClientCodegen

需求

PHP 5.5及以上

安装与使用

Composer

要使用Composer安装绑定,请将以下内容添加到composer.json文件中:

{
  "repositories": [
    {
      "type": "git",
      "url": "https://github.com//.git"
    }
  ],
  "require": {
    "/": "*@dev"
  }
}

然后运行composer install

手动安装

下载文件并包含autoload.php

    require_once('/path/to/SwaggerClient-php/vendor/autoload.php');

测试

要运行单元测试

composer install
./vendor/bin/phpunit

入门

请按照安装过程进行操作,然后运行以下命令:

<?php
require_once(__DIR__ . '/vendor/autoload.php');

$apiInstance = new Swagger\Client\Api\MdulosApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client()
);
$cnpj = "cnpj_example"; // string | 
$token = "token_example"; // string | 
$cep = "cep_example"; // string | 

try {
    $apiInstance->cEPsAtendidosPhpGet($cnpj, $token, $cep);
} catch (Exception $e) {
    echo 'Exception when calling MdulosApi->cEPsAtendidosPhpGet: ', $e->getMessage(), PHP_EOL;
}

?>

API端点文档

所有URI均相对于http://api.sistemasmartlog.com.br

模型文档

授权文档

所有端点均不需要授权。

作者

junior@sistemasmartlog.com.br