lipseys/apiintegration

Lipseys API 集成

1.2.1 2020-09-14 16:19 UTC

This package is not auto-updated.

Last update: 2024-09-21 17:19:19 UTC


README

文档可以在 https://api.lipseys.com 找到

通过 composer 在以下位置安装包

示例实现

在项目中运行以设置自动加载

composer dump-autoload -o

<?php
//run the following to setup autoloading
//composer dump-autoload -o
require_once('vendor/autoload.php'); //only needed if not run anywhere else


use lipseys\ApiIntegration\LipseysClient;


$client = new LipseysClient("email", "password");


//print_r($client->Catalog());
//print_r($client->CatalogItem("RU1022RB"));
//print_r($client->PricingAndQuantity());

//print_r($client->AllocationPricingAndQuantity());

//print_r($client->ValidateItem("RU1022RB"));
/*print_r($client->Order(array(
    "PoNumber" => "Po Number",
    "EmailConfirmation" => true,
    "DisableEmail" => true,
    "Items" => array(
        array(
            "ItemNo" => "HERR22MBS6",
            "Quantity" => 1,
            "Note" => "note"
        )
    )
));*/
/*print_r($client->AllocationOrder(array(
    "PONumber" => "Po Number",
    "EmailConfirmation" => true,
    "DisableEmail" => true,
    "Items" => array(
        array(
            "ItemNo" => "RULCP",
            "Quantity" => 1,
            "Note" => "note"
        )
    )
)));*/
/*print_r($client->DropShipAccessories(array(
    "PoNumber" => "PoNumber",
    "BillingName" => "BillingName",
    "BillingAddressLine1" => "BillingAddressLine1",
    "BillingAddressLine2" => "BillingAddressLine2",
    "BillingAddressCity" => "BillingAddressCity",
    "BillingAddressState" => "LA",
    "BillingAddressZip" => "70764",
    "ShippingName" => "ShippingName",
    "ShippingAddressLine1" => "ShippingAddressLine1",
	"ShippingAddressLine2" => "ShippingAddressLine2",
	"ShippingAddressCity" => "Baton Rouge",
	"ShippingAddressState" => "LA",
	"ShippingAddressZip" => "70764",
	"MessageForSalesExec" => "Thanks",
    "DisableEmail" => true,
    "Overnight" => false,
    "Items" => array(
        array(
            "ItemNo" => "LP171714",
            "Quantity" => 1,
            "Note" => ""
        )
    )
)));*/

/*print_r($client->DropShipFirearms(array(
    "Ffl" => "123123123123123",
    "Name" => "Name",
    "PoNumber" => "Po Number",
    "Phone" => "1231231234",
    "DelayShipping" => false,
    "DisableEmail" => true,
    "Items" => array(
        array(
            "ItemNo" => "RU1022RB",
            "Quantity" => 1,
            "Note" => "note"
        )
    )
)));*/

$date = new DateTime();
$date->modify('-5 day');
//print_r($client->OneDaysShipping($date->format("m/d/y")));