Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Sample Badge JSON GIST Files #21

Open
4 tasks done
kayaelle opened this issue Jun 16, 2018 · 1 comment
Open
4 tasks done

Create Sample Badge JSON GIST Files #21

kayaelle opened this issue Jun 16, 2018 · 1 comment
Assignees

Comments

@kayaelle
Copy link
Contributor

kayaelle commented Jun 16, 2018

All gists: https://gist.github.com/badgebotio

Badge Class: https://gist.github.com/badgebotio/81f88324b56ca987d5fb293c3ce28f41

SVG: https://gist.github.com/badgebotio/133eb1ee8dbc88c9f625440ef43fbc92

SVG CDN: https://cdn.rawgit.com/badgebotio/133eb1ee8dbc88c9f625440ef43fbc92/raw/a34879892cc406f5ea58428cad240f9bcb2e3625/Testbadge-image.svg

Assertions:
Assertion 1: https://gist.github.com/badgebotio/4614803b39f580806454a0735214b221
Raw url: https://gist.githubusercontent.com/badgebotio/4614803b39f580806454a0735214b221/raw

Assertion 2: https://gist.github.com/badgebotio/03472ee3e3060e82031ed46d31d68296
Raw url: https://gist.github.com/badgebotio/03472ee3e3060e82031ed46d31d68296/raw

Assertion 3: https://gist.github.com/badgebotio/59437dca86a4b07eff2d86e7d3b587ab
Raw url: https://gist.github.com/badgebotio/59437dca86a4b07eff2d86e7d3b587ab/raw

Assertion 4: https://gist.github.com/badgebotio/667b8decbe0a62d53d50d0747d909456
Raw url: https://gist.github.com/badgebotio/667b8decbe0a62d53d50d0747d909456/raw

Evidence:
Photo: https://gist.github.com/badgebotio/737840121fbde98c8ba9919788e9964d
Resource: https://gist.github.com/badgebotio/6f06ee32e54daf023ba70c5c6f6a0527
Learned: https://gist.github.com/badgebotio/d1fadb08c107b9c80bfd88cf616ddf7c
OH: https://gist.github.com/badgebotio/cb26ef10a546562cd660a0d2ef00dfab

@kayaelle kayaelle self-assigned this Jun 16, 2018
@kayaelle
Copy link
Contributor Author

kayaelle commented Jun 16, 2018

@zwallacedev - I'm creating the first assertion file. Ran into something.

The badge assertion json-ld includes an id property which is the url of the badge assertion location.

Example:
{ "@context": "https://w3id.org/openbadges/v2", "id": "https://example.org/assertions/123", "type": "Assertion" ....

For gists we don't know the url until it has been created. Here's the gist create api function: https://developer.github.com/v3/gists/#create-a-gist

One option I can think of is to create a gist without the assertion. The response returns the id and use that to edit it with the assertion: https://developer.github.com/v3/gists/#edit-a-gist

Adding a note: I think we need to use the raw urls in the badge json like: https://gist.githubusercontent.com/badgebotio/4614803b39f580806454a0735214b221/raw

Ran into some validation issues. It should be ok with the raw url but getting an image error on the badge class and an error that looks related to the recipient.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant