尝试从谷歌云存储中获取blob,如下所示:
[compute]
region = europe-west1
zone = europe-west1-b
[core]
account = myemail@address.com
disable_usage_reporting = False
project = right-project-name
非常简单,但我收到此错误消息:
未经授权:需要401登录(GET https://www.googleapis.com/storage/v1/b/bucketname/o/path-to-file?projection=noAcl)
我已通过cli(gcloud auth)登录,并且我已尝试使用服务帐户,但结果相同。
gcloud配置列表输出:
<?php
/* Template Name: About Us
*/
$aboutheading = get_field('about_heading');
$aboutus = get_field('about_us');
get_header(); ?>
<section>
<div class="container">
<div class="row">
<div class="col-md-4">
<h2> <?php echo "$aboutheading"; ?></h2>
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-sm-4 col-md-6">
<p class="lead"><?php echo "$aboutus"; ?></p>
</div>
</div>
</div>
</section>
<?php get_footer(); ?>
感谢您的帮助!