Skip to content

client.getApiVersion()

SaltwaterC edited this page Oct 4, 2011 · 1 revision

client.getApiVersion() => string

Helper for returning the API version which is in use. This is enabled for all the implemented query APIs. RESTful APIs such as the S3 API does not have this functionality.

aws2js aims to ship with the latest supported client versions in order to have out of the box all the documented functionality into the 'latest' version of the AWS documentation. This avoids the issues with undefined parameters that might not be enabled for older versions which are not that obvious to debug.

If a certain API introduces backward incompatibilities, although Amazon should avoid like plague this behavior, then you must use client.setApiVersion() for this specific case. Currently there are no known issues about the APIs versioning breaking the backwards compatibility.

Clone this wiki locally