本文整理汇总了PHP中Curl::Get方法的典型用法代码示例。如果您正苦于以下问题:PHP Curl::Get方法的具体用法?PHP Curl::Get怎么用?PHP Curl::Get使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Curl
的用法示例。
在下文中一共展示了Curl::Get方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: LoadFbGroups
public function LoadFbGroups($accessToken)
{
$data = Curl::Get("https://graph.facebook.com/me/groups?fields=id,name,privacy&access_token=" . $accessToken . "&method=GET");
if (isset(json_decode($data)->data)) {
return json_encode(json_decode($data)->data);
}
return false;
}
示例2: array
/* -------------------------------------------------------------------------------- */
$progressbar = array('progressbar' => array('type' => 'draggable', 'text' => __('Progress Bar Style', 'profit-builder'), 'icon' => $this->url . 'images/icons/progress-bar.png', 'function' => 'pbuilder_progressbar', 'group' => __('Charts, Bars, Counters', 'frontent-builder'), 'options' => array_merge(array('group_text' => array('type' => 'collapsible', 'label' => __('Progress Bar', 'profit-builder'), 'open' => 'true', 'options' => array('pbar_style' => array('type' => 'select', 'label' => __('Style:', 'profit-builder'), 'std' => 'meter', 'options' => array('meter' => "Green", 'orange' => "Orange", 'red' => "Red", 'custom' => "Custom")), 'pbar_color1' => array('type' => 'color', 'label' => __('Bar Color 1:', 'profit-builder'), 'std' => '#a9a9ff', 'hide_if' => array('pbar_style' => array('meter', 'orange', 'red'))), 'pbar_color2' => array('type' => 'color', 'label' => __('Bar Color 2:', 'profit-builder'), 'std' => '#0000d3', 'hide_if' => array('pbar_style' => array('meter', 'orange', 'red'))), 'pbar_animate' => array('type' => 'checkbox', 'label' => __('Animated Bar', 'profit-builder'), 'std' => 'true'), 'pbar_size' => array('type' => 'number', 'label' => __('Percent Complete', 'profit-builder'), 'std' => "50%", 'unit' => '%', 'min' => 0, 'max' => 100), 'pbar_padding' => array('type' => 'number', 'label' => __('Padding', 'profit-builder'), 'std' => "10px", 'unit' => 'px', 'min' => 0, 'max' => 100), 'pbar_height' => array('type' => 'number', 'label' => __('Bar Height', 'profit-builder'), 'std' => "40px", 'unit' => 'px', 'min' => 0, 'max' => 100), 'pbar_width' => array('type' => 'number', 'label' => __('Bar Width', 'profit-builder'), 'std' => "96%", 'unit' => '%', 'min' => 0, 'max' => 100), 'pbar_transparent' => array('type' => 'checkbox', 'label' => __('Transparent BG', 'profit-builder'), 'std' => 'false'), 'pbar_bg' => array('type' => 'color', 'label' => __('Background Color:', 'profit-builder'), 'std' => '#555555')))), $classControl, array('group_general' => array('type' => 'collapsible', 'label' => __('General', 'profit-builder'), 'options' => array('bot_margin' => array('type' => 'number', 'label' => __('Bottom margin:', 'profit-builder'), 'std' => $opts['bottom_margin'], 'unit' => 'px')))), $animationControl)));
//------------------------------------------- Overlay ------------------------------------------------
/*
* GoToWebinar integration
* Code Added By Asim Ashraf - DevBatch
* Date: 03-04-2015
*/
global $wpdb;
$table_name = $wpdb->prefix . 'profit_builder_extensions';
$extension = $wpdb->get_results('SELECT name FROM ' . $table_name . ' where name = "profit_builder_instant_gotowebinar" ', ARRAY_A);
$group_gotowebinar = array();
if (!empty($extension[0]['name'])) {
$imscpbiw_access_response = $this->options(" WHERE name = 'imscpbiw_access_response'");
$imscpbiw_access_response = json_decode($imscpbiw_access_response[0]->value);
$Curl = new Curl($imscpbiw_access_response->access_token);
$GetWebinarUrl = "https://api.citrixonline.com/G2W/rest/organizers/" . $imscpbiw_access_response->organizer_key . "/upcomingWebinars";
$response = $Curl->Get($GetWebinarUrl);
$jsonDecodeRs = json_decode($response, true, 512, JSON_BIGINT_AS_STRING);
$fwebinars['select'] = "Please Select";
if (!empty($imscpbiw_access_response->access_token)) {
foreach ($jsonDecodeRs as $webinars) {
if (!empty($webinars['organizerKey'])) {
$fwebinars[$webinars['organizerKey'] . "," . $webinars['webinarKey']] = $webinars['subject'];
}
}
$group_gotowebinar = array('type' => 'collapsible', 'label' => __('Integrate GoToWebinar', 'profit-builder'), 'open' => 'false', 'options' => array('gotowebinarenable' => array('type' => 'checkbox', 'label' => 'Enable GoToWebinar', 'std' => 'false', 'half_column' => 'false', 'desc' => __('Enable GoToWebinar', 'profit-builder')), 'gotowebinarshowbar' => array('type' => 'checkbox', 'label' => 'Enable Percentage', 'std' => 'false', 'half_column' => 'false', 'desc' => __('Enable Percentage', 'profit-builder'), 'hide_if' => array('gotowebinarenable' => array('false'))), 'gotowebinarurl' => array('type' => 'input', 'label' => 'Redirect Url', 'std' => '', 'half_column' => 'false', 'desc' => __('Redirect url after registration', 'profit-builder'), 'hide_if' => array('gotowebinarenable' => array('false'))), 'upcommingwebinar' => array('type' => 'select', 'label' => __('Select Webinar:', 'profit-builder'), 'std' => '', 'options' => $fwebinars, 'hide_if' => array('gotowebinarenable' => array('false'))), 'customfieldsdiv' => array('type' => 'div', 'id' => 'customfieldsdiv')));
}
}
$pbuilder_shortcodes = array_merge($button, $text, $bulletlist, $image, $heading, $video, $audio, $features, $contact_form, $slider, $creative_post_slider, $tabs, $tour, $accordion, $toggle, $counter, $percentage_bars, $percentage_chart, $graph, $gauge_chart, $piechart, $code, $alert, $menu, $icon_menu, $sidebar, $search, $separator, $read_more, $post, $recent_post, $gallery, $comments, $fbcomments, $progressbar);
$output = $pbuilder_shortcodes;
示例3: curl_get
function curl_get($url, $data = array(), $options = array())
{
return Curl::Get($url, $data, $options);
}