Module: TridentAssistant::API::Metadata

Included in:
TridentAssistant::API
Defined in:
lib/trident_assistant/api/metadata.rb

Overview

api for metadata

Instance Method Summary collapse

Instance Method Details

#metadata(metahash) ⇒ Object



7
8
9
# File 'lib/trident_assistant/api/metadata.rb', line 7

def (metahash)
  client.get "api/collectibles/#{metahash}"
end

#upload_metadata(metadata:, metahash:) ⇒ Object



11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/trident_assistant/api/metadata.rb', line 11

def (metadata:, metahash:)
  client
    .post(
      "api/collectibles",
      {
        metadata: ,
        metahash: metahash
      },
      {
        Authorization: "Bearer #{mixin_bot.access_token("GET", "/me", "")}"
      }
    )
end