aws_request 0.2.0+1 copy "aws_request: ^0.2.0+1" to clipboard
aws_request: ^0.2.0+1 copied to clipboard

outdated

Easily create, sign, and send API requests to AWS services without the hassle of implimenting Signature Version 4.

example/aws_request.dart

import 'dart:io';

import 'package:aws_request/aws_request.dart';

void sendCloudWatchLog(String logString) async {
  AwsRequest request = new AwsRequest('awsAccessKey', 'awsSecretKey', 'region');
  String body = """  
            {"logEvents":
              [{
                "timestamp":${DateTime.now().toUtc().millisecondsSinceEpoch},
                "message":"$logString"
              }],
              "logGroupName":"ExampleLogGroupName",
              "logStreamName":"ExampleLogStreamName"
            }""";
  HttpClientResponse result = await request.send(
    'POST',
    jsonBody: body,
    target: 'Logs_XXXXXXXX.PutLogEvents',
    service: 'logs',
  );
}
7
likes
0
points
890
downloads

Publisher

unverified uploader

Weekly Downloads

Easily create, sign, and send API requests to AWS services without the hassle of implimenting Signature Version 4.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

crypto, intl, universal_io

More

Packages that depend on aws_request