PHP Class EasyPost\Item

Inheritance: extends EasypostResource
Show file Open project: easypost/easypost-php

Public Methods

Method Description
all ( mixed $params = null, string $apiKey = null ) : mixed retrieve all items
create ( mixed $params = null, string $apiKey = null ) : mixed create an item
retrieve ( string $id, string $apiKey = null ) : mixed retrieve an item
retrieve_reference ( mixed $params = null, string $apiKey = null ) : array retrieve item reference
save ( ) save an item

Method Details

all() public static method

retrieve all items
public static all ( mixed $params = null, string $apiKey = null ) : mixed
$params mixed
$apiKey string
return mixed

create() public static method

create an item
public static create ( mixed $params = null, string $apiKey = null ) : mixed
$params mixed
$apiKey string
return mixed

retrieve() public static method

retrieve an item
public static retrieve ( string $id, string $apiKey = null ) : mixed
$id string
$apiKey string
return mixed

retrieve_reference() public static method

retrieve item reference
public static retrieve_reference ( mixed $params = null, string $apiKey = null ) : array
$params mixed
$apiKey string
return array

save() public method

save an item
public save ( )