我已经从GitHub上传了所有的“官方PHP for the Content Delivery API”文件和文件夹到我的服务器上名为"Contentful“的文件夹中。然后我尝试了Contentful 的教程,但是,当然,我不能让它工作,因为我没有使用Composer。encodes it
echo json_encode($client->getEntry('5PeGS2SoZGSa4GuiQsigQu'), JSON_PRETTY_PRINT);
Error: Cannot access Contentful space "*********6qi" on environment "master with access token "******[portfolio]/[joi]/lib/validator.js:82:32
我的.env.development文件已经启动并正常工作这是gatsby-source-contentful的样子
下面是我用来初始化客户机的代码: space: 'w20789877', // whatever the spaceshould initialize the correct client', () => {(
it('should initialize the correct client info from contentful