/** * Returns auth URL for user to authenticate the application * @param string $perms Permission you need (read, write or delete) * @return string */ public function getAuthUrl($perms = self::AUTH_TYPE_READ) { // if (!$this->frob) { // $this->auth->getFrob(); // } $request = new Request(); $request->setParameter('api_key', $this->getApiKey()); //$request->setParameter('frob', $this->getFrob()); $request->setParameter('perms', $perms); $request->sign($this->getSecret()); return $request->getAuthUrl(); }