Adds a bookmark of a given item made by a given user.
package |
Default |
---|
__construct(string $user_id, string $item_id, array $optional = array())
Throws |
|
---|
string
User who bookmarked the item
string
Bookmarked item
array
Optional parameters given as an array containing pairs name of the parameter => value
recommId
is the id of the clicked recommendation.getBodyParameters() : array
array
Values of body parameters (name of parameter => value of the parameter)
getEnsureHttps() : boolean
boolean
true if HTTPS must be chosen
getMethod() : static
static
Used HTTP method
getPath() : string
string
URI to the endpoint
getQueryParameters() : array
array
Values of query parameters (name of parameter => value of the parameter)
getTimeout() : integer
integer
Request timeout in milliseconds
setEnsureHttps( $ensure_https)
setTimeout( $timeout)
user_id : string
var |
User who bookmarked the item |
---|
string
item_id : string
var |
Bookmarked item |
---|
string
cascade_create : boolean
var |
Sets whether the given user/item should be created if not present in the database. |
---|
boolean
recomm_id : string
var |
If this bookmark is based on a recommendation request, |
---|
string
optional : array
var |
Array containing values of optional parameters |
---|
array
timeout : integer
var |
Timeout of the request in milliseconds |
---|
integer
ensure_https : boolean
var |
Sets if the HTTPS must be chosen over HTTP for this request |
---|
boolean