Add api.photos.search.
This commit is contained in:
parent
f30528cc35
commit
049fc794c3
1 changed files with 12 additions and 0 deletions
|
@ -308,6 +308,18 @@ function remove_tag(photo_id, tagname, callback)
|
|||
return common.post(url, data, callback);
|
||||
}
|
||||
|
||||
api.photos.search =
|
||||
function search(parameters, callback)
|
||||
{
|
||||
parameters = parameters.toString();
|
||||
let url = "/search.json";
|
||||
if (parameters !== "" )
|
||||
{
|
||||
url += "?" + parameters;
|
||||
}
|
||||
return common.get(url, callback)
|
||||
}
|
||||
|
||||
api.photos.set_searchhidden =
|
||||
function set_searchhidden(photo_id, callback)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue