revelrylabs / prodops_ex

The Elixir SDK for ProdOps
MIT License
0 stars 0 forks source link

Document Upload endpoint #27

Closed jacksonoberkirch closed 6 months ago

jacksonoberkirch commented 6 months ago

What I'm doing:

Adding data center model to support document upload endpoint What it looks like:

## Returns
{:ok, %{status: "ok", response: %{"id" => 4}}}
  """
def upload_document(params, config) do
    DataCenter.upload_document(params, config)
  end

EX:

ProdopsEx.upload_document(%{file_name: "test.txt"}, %ProdopsEx.Config{bearer_token: "example"})

What I'd like feedback on:

Anything you can think of, let me know if you have any questions!