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

companies.rb takes forever, we can use Drupal.org API instead #45

Open
pcambra opened this issue Feb 22, 2015 · 2 comments
Open

companies.rb takes forever, we can use Drupal.org API instead #45

pcambra opened this issue Feb 22, 2015 · 2 comments

Comments

@pcambra
Copy link

pcambra commented Feb 22, 2015

I think one of the main causes is that goes and fetches the HTML, when this script was built there was no api, but now we have one: https://www.drupal.org/api
We could make calls to the user:

https://www.drupal.org/api-d7/user/122101.json

Get the last organization

https://www.drupal.org/api-d7/user/122101.json

And the info from there:

https://www.drupal.org/api-d7/node/1269866.json

@pcambra
Copy link
Author

pcambra commented Feb 23, 2015

Opened https://www.drupal.org/node/2431511 to see if there's some way to get the json for a user by the name and not the id.

@lewisnyman
Copy link
Collaborator

Nice, anyway we can save time with companies would be great.

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

2 participants