小编Ash*_*ish的帖子

gotowebinar api php

我试图在php中找到gotowebinar api但是没有得到它.所以,我试着写一个有用的简单类.它对于gotowebinar,gotomeeting和rest进行相同的认证.它提取即将举行的网络研讨会,所有网络研讨会,单一网络研讨会信息,注册人字段以及创建注册人.现在你们都可以根据需要增强它.任何建议都会得到很多关注.

的help.txt

1) First change the GOTO_WEBINAR_API_KEY in 

gotoWebinarClass.php to your appication key. 

2) Then change the
REDIRECT_URL_AFTER_AUTHENTICATION in 

authorize.php. It is a url where one should be redirected after 

authentication. 

3) Execute authorize.php. 

4) After you autheticate,
it would take you to 

REDIRECT_URL_AFTER_AUTHENTICATION with "code" in the query 

string. 
5) Copy that code and execute the authorize.php again with ?

code='your_code' in the query string. 
6) If everything goes fine, we will get the token and we will …
Run Code Online (Sandbox Code Playgroud)

php

5
推荐指数
1
解决办法
5992
查看次数

Clickbank api用于获取收据信息

我尝试为clickbank创建一个小类,从clickbank获取收据信息.我想,这可能对某人有帮助.在函数get_payment_info($尝试,$ receipt)尝试已被使用,因为clickbank在发生后不立即识别事务.

<?php

define('CLICKBANK_DEV_KEY','DEV-KEY');
define('CLICKBANK_API_KEY','API-KEY');



Class ClickBank
{
    /*
     * $tries   how many times to check for receipt
     *          because when you come back from clicbank it sometimes shows it invalid
     *          
     * $receipt 
     * 
     * @return  empty array if receipt not valid
     *          receipt info array if receipt is valid 
     */
    function get_payment_info($tries, $receipt){
        $receipt_info = array();
        while($tries>0 && count($receipt_info)==0){
            $receipt_info = $this->get_receipt_info($receipt);
            $tries--;   
        }
        return $receipt_info;
    }

    function get_receipt_info($receipt){
        $receipt_info = array();
        $ch = curl_init();
        curl_setopt($ch, CURLOPT_URL, "https://api.clickbank.com/rest/1.2/orders/$receipt"); …
Run Code Online (Sandbox Code Playgroud)

clickbank

5
推荐指数
0
解决办法
1161
查看次数

标签 统计

clickbank ×1

php ×1