Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ionic-framework/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ionic framework 使用IONIC 3和google photos API检索google照片_Ionic Framework_Ionic3_Google Photos_Google Photos Api - Fatal编程技术网

Ionic framework 使用IONIC 3和google photos API检索google照片

Ionic framework 使用IONIC 3和google photos API检索google照片,ionic-framework,ionic3,google-photos,google-photos-api,Ionic Framework,Ionic3,Google Photos,Google Photos Api,我正在研究一种离子应用。 在这个应用程序中,用户将能够从他的谷歌照片帐户中获取照片,并对他选择的图像进行一些设计操作 因此,我想使用 我没有找到任何关于如何在爱奥尼亚做到这一点的例子 因此,我正在寻找一些关于如何实现这一点的示例代码或guid ======================================================= 更新 我试着这样做: 使用:cordova插件googleplus登录google 并请求https://www.googleapis.com

我正在研究一种离子应用。 在这个应用程序中,用户将能够从他的谷歌照片帐户中获取照片,并对他选择的图像进行一些设计操作

因此,我想使用

我没有找到任何关于如何在爱奥尼亚做到这一点的例子

因此,我正在寻找一些关于如何实现这一点的示例代码或guid

=======================================================

更新 我试着这样做:

使用:
cordova插件googleplus登录google

并请求
https://www.googleapis.com/auth/photoslibrary
范围
代码如下:

//我们在这里登录。
这个是.gplus.login({
“网络客户端”:“**********”,
“离线”:对,
“范围”:“配置文件电子邮件”https://www.googleapis.com/auth/photoslibrary'
})。然后((res)=>{
//登录后,我们尝试获取谷歌照片相册
this.http.get('https://photoslibrary.googleapis.com/v1/albums', {
responseType:ResponseContentType.Json,
参数:{
accessToken:res.accessToken,
页面大小:50,
}
}).订阅(res=>{
console.log('
Request is missing required authentication credential. 
Expected OAuth 2 access token, login cookie or other valid authentication credential. 
See https://developers.google.com/identity/sign-in/web/devconsole-project.
Request is missing required authentication credential. 
Expected OAuth 2 access token, login cookie or other valid authentication credential. 
See https://developers.google.com/identity/sign-in/web/devconsole-project.