This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function counterBitly() { | |
//Creating Variables | |
var access_token = "xxxxxxxxxxxxxxxxxxxx "; | |
var url= "https://api-ssl.bitly.com/v3/link/clicks?access_token="+access_token; | |
var ss = SpreadsheetApp.getActiveSpreadsheet(); | |
ss.insertSheet(); | |
var sheet = ss.getActiveSheet(); | |
var today = new Date(); | |
sheet.setName(today) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function puxa() { | |
//Creating Variables | |
var userID = "xxxxxxxxxx"; | |
var access_token = "yyyyyyyyyy"; | |
var url= "https://api.instagram.com/v1/users/"+userID+"/media/recent?access_token="+access_token; | |
var ss = SpreadsheetApp.getActiveSpreadsheet(); | |
ss.insertSheet(); | |
var sheet = ss.getActiveSheet(); | |
var today = new Date(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function puxa() { | |
var userID = "yyyyyy", // altere o yyyyyy pelo user id, mantendo as aspas em volta | |
access_token = "xxxx.xxxx.xxxxxxxxxxxx"; // altere o xxx... pelo access_token, mantendo as aspas em volta | |
// NÃO ALTERE A PARTIR DAQUI | |
var url= "https://api.instagram.com/v1/users/"+userID+"?access_token="+access_token, | |
content = UrlFetchApp.fetch(url); | |
myData = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Disabling Search | |
function disable_search_query($query, $error = true) { | |
if (is_search()) { | |
$query -> is_search = false; | |
$query -> query_vars[s] = false; | |
$query -> query[s] = false; | |
// to error | |
if ($error == true) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Making jQuery Google API | |
function modify_jquery() { | |
if (!is_admin()) { | |
wp_deregister_script('jquery'); | |
wp_register_script('jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js', false, '1.6.4'); | |
wp_enqueue_script('jquery'); | |
} | |
} | |
add_action('init', 'modify_jquery'); |