We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a69d9b commit 167c81dCopy full SHA for 167c81d
samples/Wordpress.gs
@@ -7,7 +7,7 @@ var CLIENT_SECRET = '...';
7
function run() {
8
var service = getService();
9
if (service.hasAccess()) {
10
- var blogId = service.getToken_().blog_id;
+ var blogId = service.getToken().blog_id;
11
var url = 'https://public-api.wordpress.com/rest/v1.1/sites/' + blogId + '/posts';
12
var response = UrlFetchApp.fetch(url, {
13
headers: {
@@ -63,4 +63,4 @@ function authCallback(request) {
63
} else {
64
return HtmlService.createHtmlOutput('Denied');
65
}
66
-}
+}
0 commit comments