Bacen.STA.HTTP (Bacen STA v0.1.1)

It's a HTTP client that talks to STA's API endpoints.

Configuration

config :bacen_sta,
  test: true,
  client: Bacen.STA.HTTP,
  credentials: [
    username: "username",
    password: "password"
  ]

Link to this section Summary

Functions

Send file content from given XML content for given protocol to Bacen

Send file information to Bacen and retrieve the file protocol to upload content

Link to this section Functions

Link to this function

send_file_content(protocol, xml)

Send file content from given XML content for given protocol to Bacen

Link to this function

send_protocol(xml)

Send file information to Bacen and retrieve the file protocol to upload content