Detected 1 occurrence(s) of ‘\s*pass[word]+\s*[:=]\s*["'][a-z0-9\-_\!\$]+["']‘: 4aedba5035b08a84822404d4626af173239" site = "http://localhost:3021" username = "test@example.com" #fb_id = "712482642" #fb_token = "AAAHaRwwjOckBAOJZAx3ZC6ecRrz1I0BwYGhE0OLRbFjpwqCcIjbYVezvh1f2jeD3IKCyKURKiv2wZC1KkP2qd0r40fvqpP8KpWQYzZBjWQZDZD" password = "test" begin ap 1 response2 = RestClient.post 'http://localhost:3021/oauth/token', {grant_type: 'password', client_id: client_id, client_secret: client_secret, username: username, password: password, scope: "public"} ap 2 ap response2 token2 = JSON.parse(resp Source: http://pastie.org/pastes/8703017/download
↧