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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Response data #65

Closed
Shigeki1120 opened this issue Apr 5, 2018 · 1 comment
Closed

Response data #65

Shigeki1120 opened this issue Apr 5, 2018 · 1 comment

Comments

@Shigeki1120
Copy link

First of all, thanks for this awesome package馃憤

This is rather a question.

Is there a situation when a response does not contain any of these raw, thumb, small, regular, full in url object as well as name and profile urls in user object when using unsplash.search.photos()?

I want to make sure if the data is always present or no.

@dimaboychev
Copy link

dimaboychev commented Jan 17, 2019

for search photos when I log the response the only thing i get is this:

Response {
  size: 0,
  timeout: 0,
  [Symbol(Body internals)]:
   { body:
      PassThrough {
        _readableState: [Object],
        readable: true,
        domain: null,
        _events: [Object],
        _eventsCount: 7,
        _maxListeners: undefined,
        _writableState: [Object],
        writable: true,
        allowHalfOpen: true,
        _transformState: [Object] },
     disturbed: false,
     error: null },
  [Symbol(Response internals)]:
   { url: 'https://api.unsplash.com/photos/search?query=bear&category=&page=1&per_page=1',
     status: 200,
     statusText: 'OK',
     headers: Headers { [Symbol(map)]: [Object] } } }

there is no data of the images which is sad :( tried the library for php and in the response contains what you need -- urls for images, id's, etc.

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

3 participants