Skip to content

Instantly share code, notes, and snippets.

View Lhodge6's full-sized avatar

Leon Quinton Hodges-Austin Lhodge6

View GitHub Profile
curl -v -X POST -H "Authorization:linklock+clear 6A26C1F1-56A9-45E7-993C-5B8BF7C9AC9E:username:password" -H "Content-Type:application/json" -d "{\"roiCampaignId\": 1, \"scoreName\": \"Test Score\", \"scoreDescription\": \"Test Score Description\", \"scoreKey\": \"Test Score Key\"}" "http://localhost:51324/configurations/scores/"
curl -v -H "Authorization:linklock+clear 6A26C1F1-56A9-45E7-993C-5B8BF7C9AC9E:username:password" "http://localhost:51324/configurations/scores/"
curl -v -X POST -H "Authorization:linklock+clear 6A26C1F1-56A9-45E7-993C-5B8BF7C9AC9E:username:password" -H "Content-Type:application/json" -d "{\"roiCampaignId\": \"1\", \"scoreName\": \"Test Score\", \"scoreDescription\": \"Test Score Description\", \"scoreKey\": \"Test Score Key\"}" "http://localhost:51324/configurations/scores/"
curl -v -X POST -H "Authorization:linklock+clear 6A26C1F1-56A9-45E7-993C-5B8BF7C9AC9E:username:password" -H "Content-Type:application/json" -d "{\"roiCampaignId\": \"1\", \"scoreAttributeName\": \"Test Score\
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Dynamic;
using System.IO;
using System.Linq;
using System.Net;
using System.ServiceModel;
using System.ServiceModel.Activation;
using System.ServiceModel.Channels;
@Lhodge6
Lhodge6 / curl.txt
Created April 27, 2012 00:17
Curl examples
curl -H "Authorization: linklock+clear 6A26C1F1-56A9-45E7-993C-5B8BF7C9AC9E:demo@roi2.com:roi123!" "http://localhost:51324/providers/1257455/notes/?page=1&perPage=1&sidx=providerId&sord=asc"
curl -v -X POST -H "Authorization:linklock+clear 6A26C1F1-56A9-45E7-993C-5B8BF7C9AC9E:demo@roi2.com:roi123!" -H "Content-Type:application/json" -d "{\"providerNoteSubject\":\"test subject\", \"providerNoteText\": \"test text\"}" "http://localhost:51324/providers/1257455/notes/"
curl -v -X PUT -H "Authorization:linklock+clear 6A26C1F1-56A9-45E7-993C-5B8BF7C9AC9E:demo@roi2.com:roi123!" -H "Content-Type:application/json" -d "{\"providerNoteSubject\":\"test subject herp\", \"providerNoteText\": \"test text derp\"}" "http://localhost:51324/providers/1257455/notes/4625"
curl -v -X DELETE -H "Authorization:linklock+clear 6A26C1F1-56A9-45E7-993C-5B8BF7C9AC9E:demo@roi2.com:roi123!" "http://localhost:51324/providers/1257453/notes/4622/"