According to http://api.ooyala.com/docs/v2/query_api we need to use the where statement for queries.

e.g.

SELECT * WHERE embed_code IN ('g0YzBnMjoGiHUtGoWW4pFzzhTZpKLZUi',
                              'g1YzBnMjrEWdqX0gNdtKwTwQREhEkf9e')

/v2/assets?where=embed_code IN ('g0YzBnMjoGiHUtGoWW4pFzzhTZpKLZUi','g1YzBnMjrEWdqX0gNdtKwTwQREhEkf9e')

This is not being done currently. The below patch adds where and IN in the query string.

After adding this patch, things start working again when you for instance try to save a node with a particular embed code in the video field (it would give me an SQL error otherwise as it was not able to find out duration and status).

Also note the the use of embed_code instead of embedCode.

Comments

sidharth_k’s picture

Issue summary: View changes

language improvements

sidharth_k’s picture

Issue summary: View changes

language improvements

sidharth_k’s picture

Status: Active » Closed (fixed)
sidharth_k’s picture

Issue summary: View changes

language