postAsync method

Future postAsync (String endPoint, Object data)

Implementation

Future<dynamic> postAsync(String endPoint, Object data) async {

  var url = this._getOAuthURL("POST", endPoint);

  final response = await http.post(url, body: data);

  return json.decode(response.body);
}