AWSS3GetService

Typecommand
Dictionarylibrary.aws
LibraryAmazon Web Services
Syntax
AWSS3GetService <pCallback>
Associationscom.livecode.library.aws
Summary

Get the S3 service description.

Parameters
NameTypeDescription
pCallback

A command name to be sent on completion with the server reponse.

Example
AWSS3GetService "getServiceCallback"
put it into tRequestID

on getServiceCallback pRequestID, pResult, pError
   if pError is empty then
      local tBucketNames
      repeat with tIndex = 1 to the number of elements of pResult["Buckets"]["Bucket"]
         put pResult["Buckets"]["Bucket"][tIndex]["Name"] & return after tBucketNames
      end repeat
   end if
end getServiceCallback
Values
NameTypeDescription
It

A request ID able to be used with tsNetGetStatus while the request is active.

The result

An error message if the request failed.

RelatedFunction: tsNetGetStatus, tsNetRetrHeaders
Library: tsNet
Description

The caller of this command will be sent the callback message on completion with two parameters:

  • the request ID
  • the response from the server parsed into an array.
  • an error message if one occurred

The array contains service owner details and details of the s3 buckets available.

For futher details about this API see the AWS S3 REST API Documentation

Tagsnetworking,networking