Changeset 918


Ignore:
Timestamp:
04-10-10 16:59:10 (5 years ago)
Author:
tabma
Message:
  • added oauth method to Sandbox-controller to test
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/controllers/SandboxController.groovy

    r375 r918  
    5252        } 
    5353 
     54        def oauth = { 
     55            def key = session.oauthToken.key 
     56            def secret = session.oauthToken.secret 
     57            def response = oauthService.accessResource(url: 'http://www.myexperiment.org/whoami.xml', consumer: 'myExperiment', 
     58            token:[key: key, secret: secret], method: 'POST') 
     59            render ("Calling whoami from myExperiment [key:" + key + ", secret:"+secret+"]") 
     60            render ("Response: " + response) 
     61 
     62        } 
     63 
    5464 
    5565} 
Note: See TracChangeset for help on using the changeset viewer.