This file contains hidden or 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
let username = "myHandle" // Put Twitter handle without @ here. | |
let accountStore = ACAccountStore() | |
let accountType = accountStore.accountTypeWithAccountTypeIdentifier(ACAccountTypeIdentifierTwitter) | |
accountStore.requestAccessToAccountsWithType(accountType, options: nil) { granted, error in | |
if granted == true { | |
if let account = accountStore.accountsWithAccountType(accountType).first as? ACAccount { | |
let finalURL = "https://api.twitter.com/1.1/statuses/user_timeline.json?screen_name=" + username + "&count=100" |
This file contains hidden or 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
<section class="posts"> | |
{% for category in site.categories %} | |
<dl> | |
<dt> | |
{{ category | first | capitalize }} | |
</dt> | |
{% for posts in category %} | |
{% for post in posts %} | |
{% if post.url %} |
NewerOlder