apihit 0.0.7 apihit: ^0.0.7 copied to clipboard
A new Flutter package to make the api integrations easy.
A Flutter Package to help developers with API Integrations.
Features #
This package has a Function called apiHit which takes the paramters as request,url,path and token (for authorization) and body. The parameter token,body is not required.
Usage #
String token = preferences.getString("token");
Map<String,dynamic> data = {};
var response = await apiHit("GET","http://10.2.2.1:5000","/getBooks",token,data);
This response variable has your response returned by the API.