启动php artisan服务时出错
启动laravel服务器时出现以下错误启动php artisan服务时出错,php,laravel-5.4,mailchimp-api-v3.0,Php,Laravel 5.4,Mailchimp Api V3.0,启动laravel服务器时出现以下错误 [Symfony\Component\Debug\Exception\FatalThrowableError] Parse error: syntax error, unexpected '=', expecting ']' 我正在尝试创建一个与mailchimp api集成的web应用程序。我正在使用以下软件包 现在我已经创建了laravel newsletter.php,并按照下面的帖子插入了api键和列表id 下面是我如何列出api密钥和列表
[Symfony\Component\Debug\Exception\FatalThrowableError]
Parse error: syntax error, unexpected '=', expecting ']'
我正在尝试创建一个与mailchimp api集成的web应用程序。我正在使用以下软件包
现在我已经创建了laravel newsletter.php
,并按照下面的帖子插入了api键和列表id
下面是我如何列出api密钥和列表id的
<?php
return [
/*
* The api key of a MailChimp account. You can find yours here:
* https://us10.admin.mailchimp.com/account/api-key-popup/
*/
// 'apiKey' => env('MAILCHIMP_APIKEY'),
'MAILCHIMP_APIKEY'='API 1234567891011121314',
/*
* When not specifying a listname in the various methods, use the list with this name
*/
'defaultListName' => 'subscribers',
/*
* Here you can define properties of the lists you want to
* send campaigns.
*/
'lists' => [
/*
* This key is used to identify this list. It can be used
* in the various methods provided by this package.
*
* You can set it to any string you want and you can add
* as many lists as you want.
*/
'subscribers' => [
/*
* A mail chimp list id. Check the mailchimp docs if you don't know
* how to get this value:
* http://kb.mailchimp.com/lists/managing-subscribers/find-your-list-id
*/
// 'id' => env('MAILCHIMP_LIST_ID'),
'id'='123456789',
],
],
/*
* If you're having trouble with https connections, set this to false.
*/
'ssl' => true,
];
这只是一个打字错误,对吗
'MAILCHIMP_APIKEY'='API 1234567891011121314',
应该是
'MAILCHIMP_APIKEY'=>'API 1234567891011121314',
而在'id'=>'123456789',
这只是一个打字错误,对吗
'MAILCHIMP_APIKEY'='API 1234567891011121314',
应该是
'MAILCHIMP_APIKEY'=>'API 1234567891011121314',
在
'id'=>'123456789',
'MAILCHIMP\u APIKEY'='API 123456789101121314',
缺少一个
。与'id'='123456789',
'MAILCHIMP_APIKEY'='API 123456789101121314',
缺少一个
。与'id'='123456789',
相同。列表id也是这样吗?@AltBrian数组中的所有键/值对必须是:“键”=>“值”,
@AltBrian,如果这解决了您的问题,您可以接受作为答案。几分钟前我不会告诉您。现在已经完成。我现在收到提供的(1/1)异常无效的MailChimp API密钥。
列表id也是这样吗?@AltBrian数组中的所有密钥/值对必须是:“key”=>“value”,
@AltBrian,如果这解决了您的问题,您可以接受作为答案。几分钟前,我不会告诉您。现在已经完成。我现在收到提供的(1/1)异常无效的MailChimp API密钥```。