O'Reilly logo

Magento 1.3: PHP Developer's Guide by Jamie Huskisson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Basic API methods

Magento provides a set of methods, or functions, that we can use once we have our API $client set and ready to use. These methods are the standard for performing calls to the Core API and are the standard for using the Core API with your scripts.

Describing the methods

Here are the Basic API methods as outlined by Magento's Core API guide introduction page:

Method

Description

Return value

startSession()

starts API session and returns sessionId

string

endSession(sessionId)

ends API session

boolean

login(apiUser, apiKey)

starts API session, returns sessionId and authorizes apiUser

string

call(sessionId, resourcePath, array arguments)

calls API resource that is allowed in current session (if no session is specified, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required