Not signed in (Sign In)

The Intervals Forum

Categories

Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.

API

Getting multiples

Bottom of Page

1 to 2 of 2

  1.  
    • CommentAuthoryalp
    • CommentTimeNov 8th 2010
     
    Hello,
    If I wanted to return the details for one value I can use
    https://api.myintervals.com/time/?moduleid=123456&datebegin=10-10-2&dateend=10-10-10&limit=2000

    How could I combine this to return multiples
    https://api.myintervals.com/time/?moduleid=123456&moduleid=123457&moduleid=123458&datebegin={1}&dateend={2}&limit=2000

    thanks for your time
    •  
      CommentAuthorcameron
    • CommentTimeNov 9th 2010
     
    Hey yalp,

    The moduleid filter on the time resource does allow you to string multiple values together. The expected format is CSV. Your query would look something like this:

    https://api.myintervals.com/time/?moduleid=123456,123457,123458&datebegin={1}&dateend={2}&limit=2000

    Many resource filters allow you to string multiple integers together in a CSV format. The documentation for each resource will tell you when this is permitted. In the "Expects" column, next to where it says "integer", if there is a superscript "1" that means multiple values are allowed.

    Hope that helps.

    Cameron