Allegro WebAPI

Programming interface of the Allegro platform

doGetMyAddresses

Last change: 01.09.2011 r.
Availability:
This method allows for loading information on address data saved to user account. Use it mostly with doSendPostBuyForm.

  1. session-id | string | required
    User's session identifier received using the doLogin(Enc) method.



Sample structure of method call

$dogetmyaddresses_request = array(
   'session-id' => '22eb99326c6be29aa16d07d622bcfbcbee94ad54846f2f4e03_1'
);

  1. addresses-info | AddressesInfoStruct[]
    Array of structures containing full address data of a logged-in user.
    1. address-type | int
      Address type (1 - from account settings, 2 - from delivery data, 3 - bussiness).
    2. address-user-data | AddressUserDataStruct
      Structure containing user data (relevant to type of address indicated in address-type).
      1. user-company | string
        User's company.
      2. user-full-name | string
        Name and surname of a user.
      3. user-address | string
        User's address.
      4. user-postcode | string
        User's postal code.
      5. user-city | string
        User's city.



Sample structure of server reply

$dogetmyaddresses_response = array(
   'addresses-info' => array(
      array(
         'address-type' => 1,
         'address-user-data' => array(
            'user-company' => 'Inter-Komp',
            'user-full-name' => 'Jan Kowalski',
            'user-address' => 'os. B. Chrobrego 3/4',
            'user-post-code' => '60-566',
            'user-city' => 'Poznań')),
      array(
         'address-type' => 2,
         'address-user-data' => array(
            'user-company' => '',
            'user-full-name' => 'Jan Kowalski',
            'user-address' => 'ul. Kolejowa 29/2',
            'user-post-code' => '61-301',
            'user-city' => 'Poznań'))
)

);

  • ERR_NO_SESSION / ERR_SESSION_EXPIRED
    Invalid session identifier or the session has expired.
  • ERR_WEBAPI_KEY_INACTIVE
    The session-generating WebAPI key has been deactivated (the owner did not accept the User Agreement).

Allegro is not to be held liable for consequences of using examples of the published code. It does not guarantee its correct operation either. The code you see serves as an example only and may contain errors.