shiphawk v0.1.0 Shiphawk.Request View Source

Module responible for doing the requests to ShipHawk’s API

Link to this section Summary

Functions

post/2 is the function responsible for doing post requests

Link to this section Functions

Link to this function post_request(path, data) View Source

post/2 is the function responsible for doing post requests.

Parameters

  • path: A string indicating the path of ShipHaw’s API.
  • data: Map with all data the should be send within this request.

Example

  Shiphawk.Request.post('/rates', data)