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
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
) | |
type Product struct { | |
Name string | |
Price float64 `json:",string"` |
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
{ | |
"name": "The name of the event", | |
"share_url": "This should be the URL used by the share button, i.e. to the page on arcadenw.org", | |
"event_types": [ "Array", "of", "event", "types" ], | |
"location": { | |
"name": "The name of the location", | |
"street_address": "The street address", | |
"city": "The city", | |
"state": "The state", | |
"zip": "The zip", |
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
import immutable from 'immutable'; | |
import request from 'superagent'; | |
import userSession from './store/userSession'; | |
const OAUTH_TOKEN = 'Authorization'; | |
function doRequest(req, headers={}) { | |
let token = userSession.store.current.get('access_token'); | |
if (token) { | |
headers[OAUTH_TOKEN] = `Bearer ${token}`; |
OlderNewer