barest of bones

This commit is contained in:
Jeremy Kauffman 2016-08-10 16:57:01 -04:00
parent f17d0ae5c4
commit d5fed54b19
6 changed files with 51 additions and 0 deletions

View file

@ -73,6 +73,8 @@ class Controller
return MailActions::executeListSubscribe();
case '/press-kit.zip':
return ContentActions::executePressKit();
case '/roadmap':
return ContentActions::executeRoadmap();
case '/LBRY-deck.pdf':
case '/deck.pdf':
return static::redirect('https://www.dropbox.com/s/0xj4vgucsbi8rtv/lbry-deck.pdf?dl=1');

View file

@ -110,6 +110,15 @@ class ContentActions extends Actions
]];
}
public static function executeRoadmap()
{
print_r(Asana::listRoadmapTasks());
die('wtf');
return ['content/roadmap', [
]];
}
public static function executePressKit()
{
$zipFileName = 'lbry-press-kit-' . date('Y-m-d') . '.zip';

28
data/api/Asana.class.php Normal file
View file

@ -0,0 +1,28 @@
<?php
class Asana
{
protected static $curlOptions = [];
public static function listRoadmapTasks()
{
return static::get('abc');
$uri = '/projects/projectId-id/tasks';
}
protected static function get($endpoint, array $data = [])
{
$apiKey = '0/c85cfce3591c2a3e214408cfba7cc44c';
$options = [];
// $apiKey = Config::get('prefinery_key');
// curl -H "Authorization: Bearer ACCESS_TOKEN" https://app.asana.com/api/1.0/users/me
$options['headers'] = ['Authorization: Bearer ' . $apiKey];
return
Curl::get('https://app.asana.com/api/1.0/users/me', $data, $options)
;
}
}
class AsanaException extends Exception
{
}

View file

@ -234,3 +234,6 @@ title:
publish: Publish
refer: Share and Earn
what: "Art in the Internet Age: An Introduction to LBRY"
roadmap:
title: LBRY Roadmap
description: See past and future progress on development of LBRY, the world's first user-controlled digital marketplace.

View file

@ -0,0 +1,9 @@
<?php Response::setMetaDescription('roadmap.description') ?>
<?php NavActions::setNavUri('/learn') ?>
<?php echo View::render('nav/_header', ['isDark' => false]) ?>
<main>
<div class="content content-light">
<h1>{{roadmap.title}}</h1>
</div>
</main>