module LittleLight::Vendor

Public Instance Methods

get_all_vendors(destinyMembershipId, membershipType, characterId, component) click to toggle source

this will return all possible vendors that have a rotating inventory. requires a components query string bungie-net.github.io/multi/schema_Destiny-DestinyComponentType.html#schema_Destiny-DestinyComponentType

# File lib/little_light/vendor.rb, line 8
def get_all_vendors(destinyMembershipId, membershipType, characterId, component)
  data = self.class.get(
    "/Destiny2/#{membershipType}/Profile/#{destinyMembershipId}/"\
    "Character/#{characterId}/Vendors?components=#{component}",
    headers: @headers
  )
end
get_one_vendor(destinyMembershipId, membershipType, characterId, vendorHash) click to toggle source

this will return the inventory of a single vendor that is supplied through the vendorHash param requires a components query string bungie-net.github.io/multi/schema_Destiny-DestinyComponentType.html#schema_Destiny-DestinyComponentType

# File lib/little_light/vendor.rb, line 20
def get_one_vendor(destinyMembershipId, membershipType, characterId, vendorHash)
  data = self.class.get(
    "/Destiny2/#{membershipType}/Profile/#{destinyMembershipId}/"\
    "Character/#{characterId}/Vendors/#{vendorHash}?components=#{component}",
    header: @headers
  )
end