Sha256: 4ed301f4208dcd169ff9f91570aca7111923b1fd97c02cb337f93fafb219869e

Contents?: true

Size: 436 Bytes

Versions: 5

Compression:

Stored size: 436 Bytes

Contents

$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)

require 'bungie_client'

# init client
client = BungieClient::Client.new(
  :api_key => 'YOUR_API_KEY'
)

# search account
s = client.get_response "Destiny/SearchDestinyPlayer/2/RuBAN-GT"

p s = s.first if !s.nil? && s.length == 1

# get profile with characters
p client.get_response "Destiny/#{s['membershipType']}/Account/#{s['membershipId']}" unless s.nil?

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
bungie_client-1.1.1 examples/client_usage.rb
bungie_client-1.1.0 examples/client_usage.rb
bungie_client-1.0.3 examples/client_usage.rb
bungie_client-1.0.2 examples/client_usage.rb
bungie_client-1.0.0 examples/client_usage.rb