Overview

Namespaces

  • Html2Text
  • Izberg
    • Exception
    • Resource
      • Category

Classes

  • Helper
  • Izberg
  • Resource
  • Overview
  • Namespace
  • Class

Class Izberg

Namespace: Izberg
Located at Izberg.php
Methods summary
public
# getDebug( )
public String
# getApiSecret( )

API-secret Getter

API-secret Getter

Returns

String
public String
# getAccessToken( )

Access token Getter

Access token Getter

Returns

String
public String
# getAppNamespace( )

NAMESPACE Getter

NAMESPACE Getter

Returns

String
public String
# getEmail( )

Email Getter

Email Getter

Returns

String
public String
# getFirstName( )

First name Getter

First name Getter

Returns

String
public String
# getLastName( )

Last name Getter

Last name Getter

Returns

String
public String
# getUsername( )

Username Getter

Username Getter

Returns

String
public String
# getCurrency( )

Currency Getter

Currency Getter

Returns

String
public String
# getShippingCountry( )

Shipping Country Getter

Shipping Country Getter

Returns

String
public static
# getApiUrl( )
public String
# getTimestamp( )

Timestamp Getter

Timestamp Getter

Returns

String
public String
# getNonce( )

Nonce Getter

Nonce Getter

Returns

String
public String
# getLocale( )

Locale Getter

Locale Getter

Returns

String
public Boolean
# enableLog( )

Enable logs

Enable logs

Returns

Boolean
public Boolean
# enableSignature( )

Enable signed call api

Enable signed call api

Returns

Boolean
public String
# getMessageAuth( $email, $first_name, $last_name )

Message Auth Getter

Message Auth Getter

Returns

String
public String
# getRequestSignature( $body )

Request signature

Request signature

Returns

String
public String
# setUsername( $username )

Username Getter

Username Getter

Returns

String
public String
# setAccessToken( $access_token )

Access token Setter

Access token Setter

Returns

String
public
# setApiSecret( string $apiSecret )

API-secret Setter

API-secret Setter

Parameters

$apiSecret
public
# setAppNamespace( string $namespace )

NAMESPACE Setter

NAMESPACE Setter

Parameters

$namespace
public
# setEmail( string $email )

Email Setter

Email Setter

Parameters

$email
public StdObject
# getUser( )

get current authenticated user

get current authenticated user

Returns

StdObject
public null
# setUser( $params )

Use this user for current connection

Use this user for current connection

Returns

null
public
# setFirstName( string $firstname )

First name Setter

First name Setter

Parameters

$firstname
public
# setLastName( string $lastname )

Last name Setter

Last name Setter

Parameters

$lastname
public
# setCurrency( string $currency )

Currency Setter

Currency Setter

Parameters

$currency
public
# setShippingCountry( string $shippingCountry )

Shipping country Setter

Shipping country Setter

Parameters

$shippingCountry
public String
# setTimestamp( string $timestamp )

Timestamp Setter

Timestamp Setter

Parameters

$timestamp

Returns

String
public String
# setNonce( string $nonce )

Nonce Setter

Nonce Setter

Parameters

$nonce
$timestamp

Returns

String
public String
# setDebug( string $debug )

Debug Setter

Debug Setter

Parameters

$debug

Returns

String
public
# __construct( array|string $config )

Default constructor

Default constructor

Parameters

$config
Izberg configuration data
public
# sso( $config )
public static Izberg\Izberg
# getInstance( )

Static function to get the last validated Instance

Static function to get the last validated Instance

Returns

Izberg\Izberg
public static
# setInstance( Izberg\Izberg $izberg )

Set the default instance to a specified instance.

Set the default instance to a specified instance.

Parameters

$izberg

An object instance of type Izberg, or a subclass.

public Izberg\Helper
# getHelper( )

Get helper instance

Get helper instance

Returns

Izberg\Helper
public
# log( string $message, string $level = "error", string $path = null )

The Log Function

The Log Function

Parameters

$message
Your log message
$level
Log type (default is "ERROR")
$path
Directory path for logs, CWD by default
public String
# getInlineUserToken( )

Get the inline user token

Get the inline user token

Returns

String
public Resource/Application
# getCurrentApplication( )

Get the current application

Get the current application

Returns

Resource/Application
public mixed
# Call( string $path, array $method = 'GET', boolean $params = null, string $accept_type = 'Accept: application/json', $content_type = 'Content-Type: application/json; charset=UTF-8', $output_file = null )

The call operator

The call operator

Parameters

$path
$function API resource path
$method
$params Additional request parameters
$params
$auth Whether the function requires an access token
$accept_type
$method Request type GET|POST
$content_type
$output_file

Returns

mixed
protected String
# _getSingleSignOnResponse( $params = null )

Api key Getter

Api key Getter

Returns

String
protected
# curlExec( $ch )
protected
# curlGetInfo( $ch, $name )
public
# testIzbergToken( )

Test if AcessToken is valid

Test if AcessToken is valid

Returns

object
public static
# convertHtml( $html )

Converts html string to simple string

Converts html string to simple string

Returns

string
public
# get( $resource, $id = null, $params = null, $accept_type = "Accept: application/json", $endpoint = null )

Factory method, use it to build resources

Factory method, use it to build resources

Returns

object
public
# get_list_response( $resource, $params = null, $accept_type = "Accept: application/json", $url = null )

Factory method, use it to get response to build resources

Factory method, use it to get response to build resources

Returns

object
public
# get_list( $resource, $params = null, $accept_type = "Accept: application/json", $url = null )

Factory method, use it to build resources

Factory method, use it to build resources

Returns

object
public
# get_list_meta( $resource, $params = null, $accept_type = "Accept: application/json" )

Factory method, use it to build resources

Factory method, use it to build resources

Returns

object
public
# create( $resource, $params = null, $accept_type = "Content-Type: application/json" )

Factory method, use it to build resources

Factory method, use it to build resources

Returns

object
public Object
# update( $resource = null, $id = null, $params = null, $accept_type = "Content-Type: application/json" )

Updates Object

Updates Object

Returns

Object
public Object
# get_schema( $resource, $params = null, $accept_type = 'Accept: application/json' )

Get Schema

Get Schema

Returns

Object
public
# isAnonymous( )
Constants summary
string PRODUCTION_API_URL

The API production URL

The API production URL

# 'https://api.iceberg.technology/v1/'
string SANDBOX_API_URL

The API sandbox URL

The API sandbox URL

# 'https://api.sandbox.iceberg.technology/v1/'
string SINGLE_SIGN_ON_URL

The Single Sign On URL

The Single Sign On URL

# 'user/sso/'
string DEFAULT_CURRENCY

The default currency

The default currency

# 'EUR'
string DEFAULT_SHIPPING_COUNTRY

The Default shipping country

The Default shipping country

# 'FR'
string DEFAULT_LOCALE

The Default shipping country

The Default shipping country

# 'fr'
Properties summary
protected static Izberg\Izberg $_singleton

The singleton of Izberg instance

The singleton of Izberg instance

#
protected static Izberg\Helper $_helper

The singleton of Izberg\Helper instance

The singleton of Izberg\Helper instance

#
protected static String $_api_url

The API base URL

The API base URL

#
API documentation generated by ApiGen