aws_request 1.0.0 copy "aws_request: ^1.0.0" to clipboard
aws_request: ^1.0.0 copied to clipboard

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

example/aws_request.dart

import 'package:aws_request/aws_request.dart';
import 'package:http/http.dart';

Future<void> awsRequestFunction(String logString) async {
  final AwsRequest request = AwsRequest(
    awsAccessKey: 'awsAccessKey',
    awsSecretKey: 'awsSecretKey',
    region: 'region',
  );
  final Response result = await request.send(
    type: AwsRequestType.post,
    jsonBody: "{'jsonKey': 'jsonValue'}",
    service: 'logs',
    queryString: {'X-Amz-Expires': '10'},
    headers: {'X-Amz-Security-Token': 'XXXXXXXXXXXX'},
  );
  print(result.statusCode);
}
7
likes
130
pub points
63%
popularity

Publisher

unverified uploader

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

crypto, http, intl

More

Packages that depend on aws_request