1

I am consuming data from an API which provides a URL similar to: http://data.something.com/api/records?pageIndex=0&pageSize=25

The API will return XML which I will then use to create nodes. There are many thousands of records, so I will need to do this via batch. I have used batch before but never for drupal_http_request. What would be the best approach for this? Is batch API the best solution, or would another method be preferable?

Thanks

2

Hi You're probably best off using the feeds module to import from feeds it can do them as one off imports imports or periodic batch jobs and create nodes from the feeds automatically. Even though they're beta/alpha they're well used and actively developed.

  • Thanks, I've been fiddling with feeds, feeds_xpathparser and feeds_crawler. Just going through the docs. – davewilly Sep 9 '14 at 17:21
  • Great. Tested and working. – davewilly Sep 9 '14 at 19:56
  • Good stuff, glad I could help :) – munkiepus Sep 11 '14 at 12:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.