Changeset 925

Show
Ignore:
Timestamp:
05-10-10 11:27:31 (4 years ago)
Author:
tabma
Message:

- Sandbox update to OAuth

Files:
1 modified

Legend:

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

    r924 r925  
    5454 
    5555        def oauth = {             
    56             def secret = session.oauthToken.secret 
    57             def response = oauthService.accessResource('http://www.myexperiment.org/whoami.xml', 'myExperiment', 
    58                            [key: session.oauthToken.key, secret: session.oauthToken.secret], 'GET') 
     56            def response = oauthService.accessResource(url: 'http://www.myexperiment.org/whoami.xml', consumer: 'myExperiment', 
     57            token:[key: session.oauthToken.key, secret: session.oauthToken.secret], method: 'GET') 
     58 
    5959            render ("Calling whoami from myExperiment [key:" + key + ", secret:"+secret+"]") 
    6060            render ("Response: " + response)