attempt to add raw paramater on bookmark and repost calls for issue #24
This commit is contained in:
parent
cc9520525e
commit
a44de91b3a
1 changed files with 6 additions and 0 deletions
|
@ -410,6 +410,7 @@ void Pnut::setBookmark(QString pid)
|
|||
{
|
||||
QUrl url(PNUT_API_ROOT + "/posts/" + pid + "/bookmark");
|
||||
KQOAuthParameters parameters;
|
||||
parameters.insert("include_raw", "1");
|
||||
req_map[++req_id] = ":bookmark";
|
||||
putRequest(url, parameters, req_id);
|
||||
}
|
||||
|
@ -418,6 +419,7 @@ void Pnut::deleteBookmark(QString pid)
|
|||
{
|
||||
QUrl url(PNUT_API_ROOT + "/posts/" + pid + "/bookmark");
|
||||
KQOAuthParameters parameters;
|
||||
parameters.insert("include_raw", "1");
|
||||
req_map[++req_id] = ":bookmark";
|
||||
deleteRequest(url, parameters, req_id);
|
||||
}
|
||||
|
@ -425,6 +427,7 @@ void Pnut::deleteBookmark(QString pid)
|
|||
void Pnut::repost(QString pid) {
|
||||
QUrl url(PNUT_API_ROOT + "/posts/" + pid + "/repost");
|
||||
KQOAuthParameters parameters;
|
||||
parameters.insert("include_raw", "1");
|
||||
req_map[++req_id] = ":repost";
|
||||
putRequest(url, parameters, req_id);
|
||||
}
|
||||
|
@ -433,6 +436,7 @@ void Pnut::deleteRepost(QString pid)
|
|||
{
|
||||
QUrl url(PNUT_API_ROOT + "/posts/" + pid + "/repost");
|
||||
KQOAuthParameters parameters;
|
||||
parameters.insert("include_raw", "1");
|
||||
req_map[++req_id] = ":repost";
|
||||
deleteRequest(url, parameters, req_id);
|
||||
}
|
||||
|
@ -505,6 +509,7 @@ void Pnut::getPost(QString pid)
|
|||
{
|
||||
QUrl url(PNUT_API_ROOT + "/posts/" + pid);
|
||||
KQOAuthParameters parameters;
|
||||
parameters.insert("include_raw", "1");
|
||||
req_map[++req_id] = ":getpost:" + pid;
|
||||
getRequest(url, parameters, req_id);
|
||||
}
|
||||
|
@ -514,6 +519,7 @@ void Pnut::getUserStream(QString uid)
|
|||
QUrl url(PNUT_API_ROOT + "/users/" + uid + "/posts");
|
||||
KQOAuthParameters parameters;
|
||||
parameters.insert("count", "150");
|
||||
parameters.insert("include_raw", "1");
|
||||
req_map[++req_id] = ":userstream";
|
||||
getRequest(url, parameters, req_id);
|
||||
}
|
||||
|
|
Reference in a new issue