我正在我的站点上集成AWeber,但是我发现了问题,必须说文档不太清楚。
<?php
require_once('aweber_api/aweber_api.php');
$consumerKey = '***'; # put your credentials here
$consumerSecret = '***'; # put your credentials here
$accessKey = '***'; # put your credentials here
$accessSecret = '***'; # put your credentials here
$account_id = '***'; # put the Account ID here
$list_id = '***'; # put the List ID here
$aweber = new AWeberAPI($consumerKey, $consumerSecret);但我不知道,我从哪里得到了aweber_api/aweber_api.php和$consumerKey,$consumerSecret,$accessKey,$list_id,$account_id和$accessSecret。我在AWeber.com上做了记录,在那里我找不到这些凭据。
发布于 2013-02-22 15:18:53
当您注册开发人员帐户和“创建和应用程序”时,用户密钥和秘密由https://labs.aweber.com网站发布。然后,使用这两个值的API库启动授权进程(遵循OAuth 1.0a标准)。这个过程会给你访问密钥和秘密。
最后,您使用这两对密钥让应用程序在每次请求数据时对API进行身份验证:
一旦应用程序对自身进行了身份验证,就可以使用库为您想要访问的列表获取帐户ID和适当的列表ID。
AWeber有一个很好的教程,包括示例代码,在这里引导您完成他们的OAuth过程:
发布于 2013-02-22 11:14:43
https://stackoverflow.com/questions/15002249
复制相似问题