Services_Ebay
[ class tree: Services_Ebay ] [ index: Services_Ebay ] [ all elements ]

Class: Services_Ebay_Session

Source Location: /Services_Ebay-0.7.0/Ebay/Session.php

Class Overview


Services/Ebay/Session.php


Author(s):

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 29]
Services/Ebay/Session.php

manages IDs, authentication, serialization, etc.



[ Top ]


Class Variables

$compatLevel =  379

[line 130]

compatibility level
  • Access: public

Type:   integer


[ Top ]

$debug =  1

[line 116]

debug flag
  • Access: public

Type:   boolean


[ Top ]

$wire =

[line 123]

XML wire
  • Access: public

Type:   string


[ Top ]



Method Detail

__construct (Constructor)   [line 155]

Services_Ebay_Session __construct( string $devId, string $appId, string $certId)

create the session object
  • Access: public

Parameters:

string   $devId   —  developer id
string   $appId   —  application id
string   $certId   —  certificate id

[ Top ]

buildRequestBody   [line 227]

string buildRequestBody( string $verb, [array|null $params = array()], [ $authType = Services_Ebay::AUTH_TYPE_TOKEN])

build XML code for a request
  • Return: XML request
  • Access: public

Parameters:

string   $verb   —  verb of the request
array|null   $params   —  parameters of the request
   $authType   — 

[ Top ]

sendRequest   [line 277]

array sendRequest( string $verb, [array $params = array()], [ $authType = Services_Ebay::AUTH_TYPE_TOKEN])

send a request

This method is used by the API methods. You may call it directly to access any eBay function that is not yet implemented.

  • Return: response
  • Todo: add real error handling
  • Access: public

Parameters:

string   $verb   —  function to call
array   $params   —  associative array containing all parameters for the function call
   $authType   — 

[ Top ]

setAuthenticationData   [line 193]

void setAuthenticationData( string $username, [ $password = null])

set the authentication username and password
  • Access: public

Parameters:

string   $username   — 
   $password   — 

[ Top ]

setDetailLevel   [line 214]

void setDetailLevel( integer $level)

set the detail level
  • Access: public

Parameters:

integer   $level   — 

[ Top ]

setSerializerOptions   [line 349]

void setSerializerOptions( [array $opts = array()])

set additional options for the serializer
  • Access: public

Parameters:

array   $opts   — 

[ Top ]

setToken   [line 183]

void setToken( string $token)

set the authentication token
  • Access: public

Parameters:

string   $token   — 

[ Top ]

setUrl   [line 204]

void setUrl( string 0)

set the API URL
  • Access: public

Parameters:

string   0   — 

[ Top ]


Documentation generated on Mon, 11 Mar 2019 13:58:47 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.