ExOpenTravel v0.3.0 ExOpenTravel.Composers.OtaPing.Request View Source

Link to this section Summary

Link to this section Types

Link to this type

credentials()

View Source
credentials() :: %{user: String.t(), password: String.t(), endpoint: String.t()}
Link to this type

options()

View Source
options() :: keyword() | any()

Link to this section Functions

Link to this function

execute(credentials, meta, opts)

View Source
execute(credentials(), ExOpenTravel.Meta.t(), options()) ::
  {:ok, struct(), ExOpenTravel.Meta.t()}
  | {:error, any(), ExOpenTravel.Meta.t()}

Ping message

This is a simple XML message that could be useful to test if the connection is working correctly. We suggest to implement this method first in order to be sure that the SOAP level communication is correct.

Example

ExOpenTravel.Composers.OtaPing.Request.execute()