Git Product home page Git Product logo

aws4delphi's Introduction

AWS4Delphi

The AWS4Delphi is a Delphi SDK to integrate with AWS services with delphi quickly and simply.

The available services are:

⚙️ Installation

For install in your project using boss:

 $ boss install github.com/gabrielbaltazar/AWS4Delphi

Prerequisites: GBClient - This is a SDK to work with rest requests

⚡️ Quickstart S3

The available functions are:

  • CreateBucket
  • CreateObject
  • DeleteBucket
  • DeleteObject
  • DownloadObject
  • ExistBucket
  • ExistObject
  • GetObjectProperties
  • ListBuckets
  • ListObjects

You need to use AWS4D.S3.Facade.Interfaces

uses AWS4D.S3.Facade.Interfaces;
  • SET Credentials
var
  FS3: IAWS4DS3Facade;
begin
  FS3 := NewS3Facade;
  FS3
    .AccessKey('')
    .SecretKey('')
    .Region('us-east-1');
end;
  • CREATE Object
FS3.CreateObject
  .Request
    .BucketName('bucketName')
    .ObjectName('objectName')
    .FileName('FileName') // or .FileStream(Stream)
  .&End
  .Send;
  • DOWNLOAD Object
FS3.DownloadObject
  .Request
    .BucketName(edtListObjectsBucketName.Text)
    .ObjectName(edtListObjectObjectName.Text)
  .&End
  .Send
    .SaveToFile('test.txt');

⚡️ Quickstart SNS

The available functions are:

  • AddPermission
  • CheckIfPhoneNumberIsOptedOut
  • ConfirmSubscription
  • CreateSMSSandboxPhoneNumber
  • CreateTopic
  • DeleteTopic
  • DeleteSMSSandboxPhoneNumber
  • GetSMSSandboxAccountStatus
  • GetSubscriptionAttributes
  • GetTopicAttributes
  • ListSMSSandboxPhoneNumbers
  • ListSubscriptions
  • ListTopics
  • OptInPhoneNumber
  • Publish
  • RemovePersmission
  • SetEndpointAttributes
  • SetPlatformApplicationAttributes
  • SetSubscriptionsAttributes
  • SetTopicAttributes
  • Subscribe
  • Unsubscribe
  • VerifySMSSandboxPhoneNumber

You need to use AWS4D.SNS.Facade.Interfaces

uses AWS4D.SNS.Facade.Interfaces;
  • SET Credentials
var
  FSNS: IAWS4DSNSFacade;
begin
  FSNS := NewSNSFacade;
  FSNS
    .AccessKey('')
    .SecretKey('')
    .Region('us-east-1');
end;
  • Create Topic
FSNS.CreateTopic
  .Request
    .Name('topicName')
  .&End
  .Send;
  
showMessage(FSNS.CreateTopic.Response.TopicArn)

⚡️ Quickstart SQS

The available functions are:

  • CreateQueue
  • DeleteMessage
  • DeleteMessageBatch
  • DeleteQueue
  • GetQueueAttributes
  • GetQueueUrl
  • ListQueues
  • ListQueueTags
  • PurgeQueue
  • ReceiveMessage
  • SendMessage
  • TagQueue
  • UnTagQueue

You need to use AWS4D.SQS.Facade.Interfaces

uses AWS4D.SQS.Facade.Interfaces;
  • SET Credentials
var
  FSQS: IAWS4DSQSFacade;
begin
  FSQS := NewSQSFacade;
  FSQS
    .AccessKey('')
    .SecretKey('')
    .Region('us-east-1');
end;
  • SEND Message
FSQS.SendMessage
  .Request
    .QueueUrl('urlSqsQueue')
    .MessageBody('Message Content')    
  .&End
  .Send;
  • RECEIVE Message
FSQS.ReceiveMessage
  .Request
    .MaxNumberOfMessages(3)
    .QueueUrl('urlSqsQueue')
  .&End
  .Send;
  
while FSQS.ReceiveMessage.Response.Messages.HasNext do
  ShowMessage(FSQS.ReceiveMessage.Response.Messages.Current.Body);

aws4delphi's People

Contributors

gabrielbaltazar avatar backfiscall avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.