This file contains hidden or 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
{ | |
":self": "http://api.playup.com/external", | |
":type": "application/vnd.playup.provider.services+json", | |
"user_finder": { | |
":href": "http://api.playup.com/external/users/{user_token}", | |
":type": "application/vnd.playup.external.user+json" | |
} | |
} |
This file contains hidden or 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
{ | |
":type": "application/vnd.playup.credentials+json", | |
"id": "ZfRpGVbmZsh3pBrtAcNZR8s1JzEft8sM", | |
"secret": "+rNOGd9Xy+SD5Eri687Wp8VnH8n2RcXT5UUTNN0xirY=" | |
} |
This file contains hidden or 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
#!/usr/bin/env ruby | |
require 'bundler/setup' | |
require 'mach' | |
require 'json' | |
require 'addressable/template' | |
## creds ## | |
def creds_server | |
@creds_server ||= ENV.fetch('CREDS_SERVER', 'http://localhost:9090') | |
end |
This file contains hidden or 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
{ | |
":type": "application/vnd.playup.extension+json", | |
":uid": "tile.photo.featured.1", | |
":display": { | |
":self": "http://www.zombo.com/tileupdates.json", | |
":type": "application/vnd.playup.display.feature.photo+json", | |
"summary": "Photo Feature\nLorem ipsum dolor sit amet, consectetur adipisicing elit", | |
"image": "http://www.footballfedvic.com.au/uploads/pics/BoxHill_South_Emily_Web.jpg", | |
"footer_title": "Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.", | |
"footer_subtitle": "Where sport gets social", |
This file contains hidden or 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
{ | |
"sports": {}, | |
"profile": {}, | |
"credentials": { | |
":self": "https://integration.creds.playupdev.com/credentials", | |
":type": "application/vnd.playup.credentials+json", | |
":options": ["POST"] | |
} | |
} |
This file contains hidden or 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
{ | |
":type": "application/vnd.playup.extension+json", | |
":uid": "tile.photo.featured.1", | |
":display": { | |
":self": "http://www.zombo.com/tileupdates.json", | |
":type": "application/vnd.playup.display.feature.photo+json", | |
"summary": "Photo Feature\nLorem ipsum dolor sit amet, consectetur adipisicing elit", | |
"image": "http://www.footballfedvic.com.au/uploads/pics/BoxHill_South_Emily_Web.jpg", | |
"footer_title": "Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.", | |
"footer_subtitle": "Where sport gets social", |
This file contains hidden or 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
{ | |
":self": "http://playup.com/user/me/encrypted_tile_tokens", | |
":type": "application/vnd.playup.collection+json", | |
"items": [ | |
{ | |
":type": "application/vnd.playup.encrypted_tile_token+json", | |
":self": "http://playup.com/encrypted_tile_tokens/46", | |
"id": "tile_provider-46", | |
"encrypted_token": "bawerqabsd" | |
} |
This file contains hidden or 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
(current_user = 5) | |
POST /conversations/:id/invitations | |
{ | |
":type": "application/vnd.playup.conversation.invitation+json", | |
"to": { | |
":self": "http://localhost:8080/users/999", | |
":type": "application/vnd.playup.friend+json", | |
":uid": "friend-999" | |
}, | |
"details": { |
This file contains hidden or 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
match hash |
This file contains hidden or 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
#! /usr/bin/env ruby | |
require 'clamp' | |
class InitCommand < Clamp::Command | |
def execute | |
puts "initializing from another file" | |
end |