mozgbrasil/loggi-sdk-php

dev-master 2016-05-17 19:09 UTC

This package is auto-updated.

Last update: 2024-09-06 11:41:47 UTC


README

valid XHTML

Mozg\LoggiSdkPhp

简介

集成Loggi的SDK

安装 - 更新 - 卸载

此库旨在使用Composer安装。

自动加载兼容PSR-4

--

要在您的服务器终端中安装模块,请执行以下命令

composer require mozgbrasil/loggi-sdk-php

--

要在您的服务器终端中更新模块,请执行以下命令

composer clear-cache && composer update

--

卸载模块,请执行以下命令

composer remove mozgbrasil/loggi-sdk-php && composer clear-cache && composer update

常见问题解答 "FAQ"

事务模拟

我们可以通过终端或以下服务执行curl命令 http://onlinecurl.com/

预算请求

curl --request POST https://staging.loggi.com/api/v1/endereco/orcamento/ --header 'Content-Type: application/json;charset=UTF-8' --header 'Authorization: ApiKey [email da conta]:[chave da API da conta]' --data '{
"city": 1,
"package_type": "document",
"payment_method": 3225,
"transport_type": 1,
"slo": 1,
"waypoints": [
    {
        "by": "cep",
        "query": {
            "cep": "05135400",
            "instructions": "Retirar pacote 182 com Silvio.",
            "number": 77
        }
    },
    {
        "by": "address",
        "query": {
            "address": "Angélica",
            "address_complement": "cj. 124",
            "category": "Avenida",
            "instructions": "Deixar pacote 182 com Celina.",
            "number": 2491
        }
    }
]
}' --verbose

列出订单

curl --request GET https://staging.loggi.com/api/v1/pedidos-status/ --header 'Content-Type: application/json;charset=UTF-8' --header 'Authorization: ApiKey [email da conta]:[chave da API da conta]'

列出支付方式

curl --request GET https://staging.loggi.com/api/v1/metodos-de-pagamento/ --header 'Content-Type: application/json;charset=UTF-8' --header 'Authorization: ApiKey [email da conta]:[chave da API da conta]' 

徽章

Join the chat at https://gitter.im/mozgbrasil Latest Stable Version Total Downloads Latest Unstable Version License Monthly Downloads Daily Downloads Reference Status Dependency Status

🐈