postAsync method

Future postAsync (String endPoint, Object data)

Implementation

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);
}