Query Strings

Query string operations for passing data to web applications.

$skip and $top

This operation is used for paging when performing any enumeration operation. You can retrieve a range of entities under your service namespace. For example, if you want to retrieve the first five entities under your service namespace, you can issue the following command:

GET /$Resources/Topics/$skip=0&$top=5.  

{skip} is the number of entries to skip, and {top} is the number of entries to retrieve.


The Access Control scope corresponding to the resource path is used to issue the token and the resource access is evaluated against the token with the path. Upon requesting a token, the following string is returned from the Access Control service:


The token should be extracted. Because the token is URL-encoded, you must URL-decode it. The decoded token must be put into a string similar to this:


Please note the following:

  • The received string is URI-decoded (%26 => &) and is in double quotes. Put this into the HttpAuthorizationHeader.

  • The ExpiresOn time in the middle of the string is specified as a Unix File Time (that is, the number of seconds since 01/01/1970 at 12:00am). You should scrub the identityprovider, audience, issuer, and hmacsha fields.

  • The domain used when requesting a token uses the HTTP scheme, even though calls to the service are always issued over HTTPS.

  • Make sure that the content type in the HTTP header is of type: application/x-www-form-urlencoded.