Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

httpStatusCode value is null #277

Closed
Astro-Otter-Space opened this issue Feb 19, 2019 · 0 comments
Closed

httpStatusCode value is null #277

Astro-Otter-Space opened this issue Feb 19, 2019 · 0 comments

Comments

@Astro-Otter-Space
Copy link

Astro-Otter-Space commented Feb 19, 2019

Ola,

I have seen that the response from a 'setGetfield' (i haven't tested with other methods) is null.
My code exemple :

const URL_TWITTER = 'https://api.twitter.com/1.1/statuses/user_timeline.json';

$listFields = [
    'screen_name' => $screenName,
    'count' => $count,
    'exclude_replies' => true,
    'skip_status' => '1',
    'include_rts' => 1
];

$twitterResponse = $this->twitterWs->setGetfield(http_build_query($listFields))->buildOauth(self::URL_TWITTER, 'GET');

Response :

TwitterAPIExchange {#3141 ▼
  -oauth_access_token: "<my_oauth_access_token>"
  -oauth_access_token_secret: "<my_oauth_access_token_secret>"
  -consumer_key: "<my_consumer_key>"
  -consumer_secret: "<my_consumer_secret>"
  -postfields: null
  -getfield: "?screen_name=MyScreenName&count=1&exclude_replies=1&skip_status=1&include_rts=1"
  #oauth: array:12 [▶]
  +url: "https://api.twitter.com/1.1/statuses/user_timeline.json"
  +requestMethod: "GET"
  #httpStatusCode: null
}

We can see that httpStatusCode value is null

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant