• Join - It's Free

API: Getting data from multiple documents?

Started by Job Waterreus on Saturday, July 23, 2016
Problem with this page?

Participants:

Related Projects:

This discussion has been closed by an administrator.
Showing all 6 posts

According the documentation you should be able to get data from multiple documents using this syntax:: https://www.geni.com/api/document?ids=101,31534,145

When I try this I get the following error: {"error":{"type":"ApiException","message":"No action responded to document. Actions: click_logs_enabled?, help, invalidate_cached_method, log_exception, method_cached_at, method_expires_at, method_value_cached?, not_logging_bot_requests?, page_models, parse_url, perform_action, routable?, save_user_for_click_logs, should_log_click?, test, update_cached_method, url_to_node_id, and without_method_cache"}}

What is the correct syntax? (is it possible?)

Another question on documents: Is it possible to get info for the document and for tags in one request? (if so what is the syntax?)

URLs like that should work. Please note that the URL you used is from the documentation, and documents with those ids may not exist.

I also added a tags field which contains URLs or ids of the tagged profiles.

Enjoy!

Scott,

Thanks very much.
The example from the documentation now works.

I will have to play a bit with it to get the full syntax possibilities.
What would be the correct syntax to get the id from the document in combination with the ids from the tagged profiles?

Add &fields=id,tags&only_ids=1 to the parameter list.

Scott,

Thanks.
That seems to work exactly as I wanted.

Showing all 6 posts

Create a free account or login to participate in this discussion