Zebra API Doc

zebra.io.QS Class

Query string parser class. The class provides number of useful static methods to manipulate with a query string of an URL

Item Index

Methods

Methods

append

(
  • url
  • obj
)
String static

Append the given parameters to a query string of the specified URL

Parameters:

  • url String

    an URL

  • obj Object

    a dictionary of parameters to be appended to the URL query string


Return: String

a new URL

parse

(
  • url
)
Object static

Fetch and parse query string of the given URL

Parameters:

  • url String

    an URL


Return: Object

a parsed query string as a dictionary of parameters

toQS

(
  • obj
  • encode
)
String static

Convert the given dictionary of parameters to a query string.

Parameters:

  • obj Object

    a dictionary of parameters

  • encode Boolean

    say if the parameters values have to be encoded


Return: String

a query string built from parameters list