Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Open sidebar
Francis
Blizzard api
Commits
cc2813c4
Commit
cc2813c4
authored
Apr 16, 2020
by
Francis
Browse files
Fix D3 profile URLs
parent
28ce3e28
Pipeline
#137002807
passed with stage
in 5 minutes
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
6 deletions
+11
-6
CHANGELOG.md
CHANGELOG.md
+5
-0
Gemfile.lock
Gemfile.lock
+1
-1
lib/blizzard_api/diablo/community/profile.rb
lib/blizzard_api/diablo/community/profile.rb
+4
-4
lib/blizzard_api/version.rb
lib/blizzard_api/version.rb
+1
-1
No files found.
CHANGELOG.md
View file @
cc2813c4
Please view this file on the master branch, otherwise it may be outdated
**Version 0.3.9**
Fix D3 profile URLs.
**Version 0.3.8**
Added new profession endpoints.
https://us.forums.blizzard.com/en/blizzard/t/world-of-warcraft-api-patch-notes-20200414/5680
...
...
Gemfile.lock
View file @
cc2813c4
PATH
remote: .
specs:
blizzard_api (0.3.
7
)
blizzard_api (0.3.
9
)
redis (~> 4.1, >= 4.1.0)
GEM
...
...
lib/blizzard_api/diablo/community/profile.rb
View file @
cc2813c4
...
...
@@ -22,7 +22,7 @@ module BlizzardApi
# @see https://develop.battle.net/documentation/guides/using-oauth/authorization-code-flow
def
index
(
battletag
,
oauth_token
,
options
=
{})
opts
=
{
access_token:
oauth_token
,
ttl:
CACHE_TRIMESTER
}.
merge
(
options
)
api_request
"
#{
base_url
(
:community
)
}
/
data/
profile/
#{
parse_battle_tag
(
battletag
)
}
"
,
opts
api_request
"
#{
base_url
(
:community
)
}
/profile/
#{
parse_battle_tag
(
battletag
)
}
"
,
opts
end
##
...
...
@@ -38,7 +38,7 @@ module BlizzardApi
# @see https://develop.battle.net/documentation/guides/using-oauth/authorization-code-flow
def
hero
(
battletag
,
oauth_token
,
hero_id
,
options
=
{})
opts
=
{
access_token:
oauth_token
,
ttl:
CACHE_TRIMESTER
}.
merge
(
options
)
api_request
"
#{
base_url
(
:community
)
}
/
data/
profile/
#{
parse_battle_tag
(
battletag
)
}
/hero/
#{
hero_id
}
"
,
opts
api_request
"
#{
base_url
(
:community
)
}
/profile/
#{
parse_battle_tag
(
battletag
)
}
/hero/
#{
hero_id
}
"
,
opts
end
##
...
...
@@ -54,7 +54,7 @@ module BlizzardApi
# @see https://develop.battle.net/documentation/guides/using-oauth/authorization-code-flow
def
hero_items
(
battletag
,
oauth_token
,
hero_id
,
options
=
{})
opts
=
{
access_token:
oauth_token
,
ttl:
CACHE_TRIMESTER
}.
merge
(
options
)
api_request
"
#{
base_url
(
:community
)
}
/
data/
profile/
#{
parse_battle_tag
(
battletag
)
}
/hero/
#{
hero_id
}
/items"
,
opts
api_request
"
#{
base_url
(
:community
)
}
/profile/
#{
parse_battle_tag
(
battletag
)
}
/hero/
#{
hero_id
}
/items"
,
opts
end
##
...
...
@@ -70,7 +70,7 @@ module BlizzardApi
# @see https://develop.battle.net/documentation/guides/using-oauth/authorization-code-flow
def
hero_follower_items
(
battletag
,
oauth_token
,
hero_id
,
options
=
{})
opts
=
{
access_token:
oauth_token
,
ttl:
CACHE_TRIMESTER
}.
merge
(
options
)
api_request
"
#{
base_url
(
:community
)
}
/
data/
profile/
#{
parse_battle_tag
(
battletag
)
}
/hero/
#{
hero_id
}
/follower-items"
,
opts
api_request
"
#{
base_url
(
:community
)
}
/profile/
#{
parse_battle_tag
(
battletag
)
}
/hero/
#{
hero_id
}
/follower-items"
,
opts
end
private
...
...
lib/blizzard_api/version.rb
View file @
cc2813c4
...
...
@@ -2,5 +2,5 @@
module
BlizzardApi
# Gem version
VERSION
=
'0.3.
8
'
VERSION
=
'0.3.
9
'
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment