Jump to content

Recommended Posts

Posted
  1.  // Authorize the API user
            $authorized = $this->authenticate();
  2.   // Ensure that the request is formatted correctly
            if (isset($this->get[0]) && isset($this->get[1])) {
                $this->model = '';
                $fields = explode('.', $this->get[0]);execute ...
    .......

      3. // Only proceed if authorized
        if (!$authorized) {
            $this->response(self::UNAUTHORIZED);
        }

should process request only if authorized

  1.  // Authorize the API user
            $authorized = $this->authenticate();
  2. if (!$authorized) {
                $this->response(self::UNAUTHORIZED);
            }
  3.   // Ensure that the request is formatted correctly

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...