{
	"info": {
		"_postman_id": "37cc02e4-0b8d-4c75-9208-f6ad8cae3271",
		"name": "Spigit API Example Requests",
		"description": "asdf",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
		"_exporter_id": "18828619"
	},
	"item": [
		{
			"name": "Authentication",
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "Content-Type",
						"name": "Content-Type",
						"value": "application/x-www-form-urlencoded",
						"type": "text"
					}
				],
				"body": {
					"mode": "urlencoded",
					"urlencoded": [
						{
							"key": "grant_type",
							"value": "authorization_code",
							"type": "text"
						},
						{
							"key": "code",
							"value": "xxxxxxxx",
							"type": "text"
						},
						{
							"key": "client_id",
							"value": "xxxxxxxxxxxx",
							"type": "text"
						},
						{
							"key": "client_secret",
							"value": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
							"type": "text"
						}
					]
				},
				"url": {
					"raw": "https://example.spigit.com/oauth/token",
					"protocol": "https",
					"host": [
						"example",
						"spigit",
						"com"
					],
					"path": [
						"oauth",
						"token"
					]
				},
				"description": "generate oauth token"
			},
			"response": []
		},
		{
			"name": "List Challenges",
			"request": {
				"method": "GET",
				"header": [
					{
						"key": "Authorization",
						"value": "Bearer $xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
						"type": "text"
					}
				],
				"url": {
					"raw": "https://example.spigit.com/api/v1/communities?limit=100&offset=0&site_type=challenge",
					"protocol": "https",
					"host": [
						"example",
						"spigit",
						"com"
					],
					"path": [
						"api",
						"v1",
						"communities"
					],
					"query": [
						{
							"key": "limit",
							"value": "100"
						},
						{
							"key": "offset",
							"value": "0"
						},
						{
							"key": "site_type",
							"value": "challenge"
						}
					]
				},
				"description": "List challenges in an instance"
			},
			"response": []
		},
		{
			"name": "List Ideas",
			"request": {
				"method": "GET",
				"header": [
					{
						"key": "Authorization",
						"value": "Bearer $xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
						"type": "text"
					}
				],
				"url": {
					"raw": "https://example.spigit.com/api/v1/communities/61/ideas?limit=10&offset=0",
					"protocol": "https",
					"host": [
						"example",
						"spigit",
						"com"
					],
					"path": [
						"api",
						"v1",
						"communities",
						"61",
						"ideas"
					],
					"query": [
						{
							"key": "limit",
							"value": "10"
						},
						{
							"key": "\u0001",
							"value": "",
							"disabled": true
						},
						{
							"key": "offset",
							"value": "0"
						}
					]
				},
				"description": "List ideas from a challenge"
			},
			"response": []
		},
		{
			"name": "Create An Idea",
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "Authorization",
						"value": "Bearer $xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
						"type": "text"
					},
					{
						"key": "Content-Type",
						"value": "application/json",
						"type": "text"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n\t\"title\" : \"My Idea Title\",\n\t\"tags\" : \"myTag1, myTag2\",\n\t\"template_fields\" : {\n\t\t\"Content\" : \"My idea description\"\n\t},\n\t\"post_anonymously\" : 0\n}\n\t"
				},
				"url": {
					"raw": "https://example.spigit.com/api/v1/communities/84/ideas",
					"protocol": "https",
					"host": [
						"example",
						"spigit",
						"com"
					],
					"path": [
						"api",
						"v1",
						"communities",
						"84",
						"ideas"
					]
				},
				"description": "Create an idea in a specified challenge or community"
			},
			"response": []
		},
		{
			"name": "List Comments",
			"request": {
				"method": "GET",
				"header": [
					{
						"key": "Authorization",
						"value": "Bearer $xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
						"type": "text"
					}
				],
				"url": {
					"raw": "https://example.spigit.com/api/v1/ideas/2545/comments",
					"protocol": "https",
					"host": [
						"example",
						"spigit",
						"com"
					],
					"path": [
						"api",
						"v1",
						"ideas",
						"2545",
						"comments"
					]
				},
				"description": "List comments on a specified idea\n\nUse the idea ID found with the List Ideas call"
			},
			"response": []
		},
		{
			"name": "Post Comment",
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "Authorization",
						"value": "Bearer $xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
						"type": "text"
					},
					{
						"key": "Content-Type",
						"value": "application/json",
						"type": "text"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n\t\"content\": \"Comment text\",\n\t\"anon_flag\": 0\n}"
				},
				"url": {
					"raw": "https://example.spigit.com/api/v1/ideas/2545/comments",
					"protocol": "https",
					"host": [
						"example",
						"spigit",
						"com"
					],
					"path": [
						"api",
						"v1",
						"ideas",
						"2545",
						"comments"
					]
				},
				"description": "Creates comment under specified idea\n\nanon_flag determines whether the comment is anonymous or not"
			},
			"response": []
		}
	]
}