go_online 0.2.4 copy "go_online: ^0.2.4" to clipboard
go_online: ^0.2.4 copied to clipboard

This package provides a GoOnline class that can be used to make HTTP requests to a RESTful API. The class is designed to simplify the process of sending HTTP requests by abstracting away the implement [...]

0.2.4 #

  • Describe initial release. This package provides a GoOnline class that can be used to make HTTP requests to
  • a RESTful API. The class is designed to simplify the process of sending HTTP
  • requests by abstracting away the implementation details of the http package.
  • The GoOnline class has methods for sending GET, POST, PUT, and DELETE
  • requests to an API. The base URL of the API can be set using the url property,
  • and the getToken() method can be used to retrieve an authentication token from
  • the device's SharedPreferences. The postData() method sends a POST request
  • to the API with some data, while the getData() method sends a GET request. The
  • updateData() and deleteData() methods send PUT and DELETE requests respectively.
  • The GoOnline class also sets the required headers for the requests, including the
  • Content-type, Accept, and Authorization headers. The Content-type and Accept
  • headers are set to application/json, and the Authorization header includes the authentication token.
  • Overall, this package provides a convenient and easy-to-use way of sending HTTP requests to a RESTful API,
  • making it ideal for use in
  • Flutter projects that need to communicate with a server.
5
likes
110
points
40
downloads

Documentation

API reference

Publisher

verified publisherobunnovation.com

Weekly Downloads

This package provides a GoOnline class that can be used to make HTTP requests to a RESTful API. The class is designed to simplify the process of sending HTTP requests by abstracting away the implementation details of the http package. The GoOnline class has methods for sending GET, POST, PUT, and DELETE requests to an API.

License

MIT (license)

Dependencies

flutter, http, logger, shared_preferences

More

Packages that depend on go_online