-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #76 from KenEucker/develop
Fix issues with getTag and add deleteTag functionality
- Loading branch information
Showing
34 changed files
with
969 additions
and
321 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,4 @@ _site | |
dist | ||
*.DS_Store | ||
biketag.* | ||
logs | ||
logs |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<html style="font-size: 16px" class="u-responsive-xl"> | ||
<head> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<meta charset="utf-8" /> | ||
<title>BikeTag API test</title> | ||
<script | ||
type="text/javascript" | ||
src="/dist/biketag.js" | ||
></script> | ||
</head> | ||
<body> | ||
<div id="data" widht="600"></div> | ||
<script> | ||
;(async () => { | ||
const biketagAPI = new biketag({ | ||
game: 'portland', | ||
sanity: { | ||
projectId: 'x37ikhvs', | ||
accessToken: | ||
'skT5BHdVV4KxSzf2ugg1gg8P7fR1ws22Yk0Al3H2fEsSJ3KvAmR4TivtHlHeV5Ww9kIiO36TsPkEofZ39IBxZ03GKcOZqeExE2mgHXxEv9KuslRJezBQK55oYXll9kQqKwHSU3skZ3plLzRsRPosiOiyn8BJg43xcsyQuvovXKxFg4Bh907n', | ||
dataset: 'production', | ||
useCdn: false, | ||
}, | ||
imgur: { | ||
hash: 'QjnikOm', | ||
clientId: '4fa12c6ce36984b', | ||
clientSecret: '14dd920076de25884a1b900341022a84d78076bf', | ||
} | ||
}) | ||
|
||
const tags = await biketagAPI.getTag(undefined, {source: 'imgur'}) | ||
const latestTag = await biketagAPI.getTags() | ||
|
||
console.log({tags, latestTag}) | ||
|
||
const config = biketagAPI.getConfiguration() | ||
document.getElementById('data').innerHTML = JSON.stringify(config) | ||
console.log('BikeTag Config', config) | ||
})() | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.