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
from collections import namedtuple | |
from datetime import datetime, date, timedelta | |
import re | |
import requests | |
from bs4 import BeautifulSoup | |
Row = namedtuple("Row", ["number", "network", "total", "left", "reset"]) |
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
<?php | |
//Place the following line above the class: | |
//App::import('Vendor', 'OAuth/OAuthClient'); | |
//OAuth component found here: http://code.42dh.com/oauth/ | |
public function index() { | |
$data = array( | |
'AccessToken' => $this->Session->read('access_token'), | |
'Usernames' => array('alairock'), |