Google Cloud Print API:需要用户凭证

用户名

我正在尝试使用Google云打印库来获取用户可用的云打印机列表,但是当我发出请求时,出现错误:“需要用户凭据”

这是我发送请求的方式:

var request = require('request');

var options = {
    url: 'https://www.google.com/cloudprint/search',
    headers: {
            'X-CloudPrint-Proxy': 'APP_NAME',
            'Authorization': 'GoogleLogin auth=ACCESS_TOKEN_HERE'
    }
};

function callback(err, response, body) {
    console.log(err);
    console.log(response);
    console.log(body);
}

request(options, callback);
用户名

为了使这项工作(因为没有确切的文档)。

https://www.googleapis.com/auth/cloudprint添加到登录过程的范围内。

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

Google Cloud Print的打印机设置

来自分类Dev

是否需要用于现场浏览的Google Analytic hitCallback?

来自分类Dev

需要用户输入的ant任务?

来自分类Dev

从jQuery到Spring Boot MVC的POST需要用户凭证

来自分类Dev

如果我正在使用Google Play服务,是否需要用户登录Google Play?

来自分类Dev

该项目需要用户输入

来自分类Dev

Reddit API Oauth2“需要用户”

来自分类Dev

Google Cloud Print票证中的page_range

来自分类Dev

Google Cloud Vision API“ PERMISSION_DENIED”

来自分类Dev

Google Cloud Vision API权限被拒绝

来自分类Dev

Google Cloud Print API-打印PDF时的白页

来自分类Dev

Google Cloud Vision API-Python

来自分类Dev

PHP AppEngine上的Google Cloud Vision API

来自分类Dev

Python代码中的Google Cloud Datastore API

来自分类Dev

什么时候需要用于Firebase Cloud Messaging的应用服务器?

来自分类Dev

HTML页面上的Google Cloud Speech API

来自分类Dev

在Google Cloud IAM中跟踪用户权限

来自分类Dev

Google Cloud SQL的API基本网址

来自分类Dev

查看正在等待Google Cloud Print的打印作业

来自分类Dev

为什么需要用户验证?

来自分类Dev

iOS:使用GTM将PNG文件打印到Google Cloud Print

来自分类Dev

需要用户输入整数

来自分类Dev

从jQuery到Spring Boot MVC的POST需要用户凭证

来自分类Dev

如果我使用的是Google Play服务,是否需要用户登录Google Play?

来自分类Dev

带有Google Cloud Print的CUPS

来自分类Dev

保证在Google Cloud Messaging API上交付

来自分类Dev

YouTube数据API和Google Cloud端点

来自分类Dev

PHP AppEngine上的Google Cloud Vision API

来自分类Dev

如何使用需要用户输入的API(情绪分析)