sexy_api_client 0.0.1+2
sexy_api_client: ^0.0.1+2 copied to clipboard

A simple wrapper around Google's http module for easily making Query String API calls.

sexy_api_client #

A simple wrapper around Google's http module for easily making Query String API calls.

Note: This library makes an http Get request to the specified URL, concatenates the path to the URL if one is specified and URI encodes data and formats it following the QueryString Specs. Any thrown errors are from the http module it depends on.

Import Packages #

import 'package:sexy_api_client/sexy_api_client.dart';

Example #

//Define parameters
Map<String,String> parameters = {
	'format':'json',
};
//Make the API call to the specified URL using the Map parameters
String myResponse = await SexyAPI(url: 'https://api64.ipify.org',parameters: parameters).call();
//Print the server response
print(myResponse);
0
likes
70
pub points
0%
popularity

A simple wrapper around Google's http module for easily making Query String API calls.

Documentation

API reference

License

unknown (LICENSE)

Dependencies

flutter, http, meta

More

Packages that depend on sexy_api_client