Forum Discussion
mcgintym
13 years agoOccasional Contributor
Hey Thanks I have reviewed this post however I am not working with XML so to speak...here is my request
/Make call using oauth
def g = new HttpRequestUtil() //This is a script that uses the below parameters and passes in the tokens for my oauth call and gets a response from the service
def result = g.getData(URL+apiCall,accept,consumerKey,consumerSecret,tokenKey,tokenSecret)
log.info(result);
results look like this:
Mon Aug 13 07:18:35 EDT 2012:INFO:{"result":{"id":716,"name":"TestName ToGo","publisherId":111,"publisherName":"testPubName","description":"testsite","website":"http://www123.com","codingType":{"id":5,"value":"php"},"deliveryType":{"id":2,"value":"adapi"},"primaryChannel":{"id":1,"value":"general"},"devicesSupported":{"id":1,"value":"mobilewebsite"},"inventoryType":{"id":1,"value":"wap"},"created":"2010-05-03T08:59:04-0400","modified":"2012-06-01T14:16:49-0400","stateChangedDate":"2012-05-24T13:57:40-0400","active":true,"approvalState":{"id":3,"bkey":"DENY","code":"Denied"},"currentRiskScore":80,"channels":[{"id":59,"value":"mobile web"}],"placements":[{"name":"TestName Top","id":144,"status":true,"active":false,"siteId":716,"modified":"2011-12-22T10:17:06-0500","deliveryTypeId":{"id":2,"value":"AdAPI"},"adTypes":[{"id":1,"value":"Image Banner"},{"id":2,"value":"Text Banner"}],"contentChannels":[{"id":18,"value":"Sports","primary":true}],"internalChannels":[{"id":59,"value":"Mobile Web"}],"devicesSupported":[],"inventoryTypeId":{"id":1,"value":"WAP"},"codingTypeId":{"id":5,"name":"PHP","tagCode":"<
I am looking for how I would get these values into a property expansion that I can compare to a JDBC call or property transfer.
--Mike
/Make call using oauth
def g = new HttpRequestUtil() //This is a script that uses the below parameters and passes in the tokens for my oauth call and gets a response from the service
def result = g.getData(URL+apiCall,accept,consumerKey,consumerSecret,tokenKey,tokenSecret)
log.info(result);
results look like this:
Mon Aug 13 07:18:35 EDT 2012:INFO:{"result":{"id":716,"name":"TestName ToGo","publisherId":111,"publisherName":"testPubName","description":"testsite","website":"http://www123.com","codingType":{"id":5,"value":"php"},"deliveryType":{"id":2,"value":"adapi"},"primaryChannel":{"id":1,"value":"general"},"devicesSupported":{"id":1,"value":"mobilewebsite"},"inventoryType":{"id":1,"value":"wap"},"created":"2010-05-03T08:59:04-0400","modified":"2012-06-01T14:16:49-0400","stateChangedDate":"2012-05-24T13:57:40-0400","active":true,"approvalState":{"id":3,"bkey":"DENY","code":"Denied"},"currentRiskScore":80,"channels":[{"id":59,"value":"mobile web"}],"placements":[{"name":"TestName Top","id":144,"status":true,"active":false,"siteId":716,"modified":"2011-12-22T10:17:06-0500","deliveryTypeId":{"id":2,"value":"AdAPI"},"adTypes":[{"id":1,"value":"Image Banner"},{"id":2,"value":"Text Banner"}],"contentChannels":[{"id":18,"value":"Sports","primary":true}],"internalChannels":[{"id":59,"value":"Mobile Web"}],"devicesSupported":[],"inventoryTypeId":{"id":1,"value":"WAP"},"codingTypeId":{"id":5,"name":"PHP","tagCode":"<
I am looking for how I would get these values into a property expansion that I can compare to a JDBC call or property transfer.
--Mike