Description Usage Arguments Details Value Author(s) Examples
A simple function to turn named arguments into a form-encoded string
1 | formEncodeURL(a, ...)
|
a |
something |
... |
arbitrary named arguments that will become part of a form-encoded url. |
This function is called in every BigML API function. It helps
build the URL that requests are forwarded to. It automatically adds any
default user and api key settings specified by
setCredentials
. However, it also can be used to access
advanced options that are otherwise undocumented here. For instance, it's
possible to filter and/or sort on a number of different api requests,
using a number of different fields (e.g., see the documentation on
listing and sorting
datasets.)
Other usage includes specifying username
and api_key
for individual API requests; or limit
or offset
parameters
useful for paging through list requests. Finally, it's possible to
enable a simple debug mode by passing debug=TRUE. This will print the
url request string to the screen, along with any posted json objects.
form-encoded string result
Leon Hwang hwang@bigml.com
1 2 3 4 5 | ## Not run:
formEncodeURL(username="user1", api_key="test", limit=100, debug=TRUE)
# "?username=user1&api_key=test&limit=100&debug=TRUE"
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.