Commit ad5a59a1 authored by lucha's avatar lucha
Browse files

removed flattr plugin

parent df01da35
/*
Document : flattr
Created on : Dec 27, 2011, 2:28:15 AM
Author : Michael
*/
#icon-options-general.icon32.flattr {
background-image: url('img/flattr_button.png');
background-position: center center;
background-repeat: no-repeat;
}
th {
text-align: right;
vertical-align: top;
}
td {
vertical-align: top;
}
td input {
margin-right: 8px;
}
.flattr-wrap table.form-table li iframe,
.flattr-wrap table.form-table li img {
vertical-align: middle;
}
.flattr-wrap span.inactive {
color: gray;
}
.flattr-wrap span.active:before {
content : " ";
}
.flattr-wrap div#dialog {
display: none;
}
.flattr-server-check {
font-weight: bold;
}
.flattr-server-check.failed {
color: red;
}
.flattr-server-check.passed {
color: green;
}
.flattr-server-check.warn {
color: yellow;
}
#dialog ol li {
list-style-type :decimal-leading-zero;
}
\ No newline at end of file
This diff is collapsed.
<?php
require_once dirname(__FILE__) . '/lib/httpconnection.php';
require_once dirname(__FILE__) . '/lib/httpresponse.php';
require_once dirname(__FILE__) . '/lib/oauth2client.php';
\ No newline at end of file
# Sample code to use the Flattr v2 web API
to get up and running:
the oauth2client uses httpconnection and httpresponse which wrapps the curl php bindings.
if you are using a server with apt you can install it by
apt-get install php5-curl
## public api call
$client = new OAuth2Client(array('base_url' => 'https://api.flattr.com/rest/v2'));
$thing = $client->getParsed('/things/423405/');
var_dump($thing); // array
## minimal sample code
create an API key at https://flattr.com/apps
make sure you add a correct callback\_url it should be something like http://url-to-your-vhost/callback.php
Copy /config.template.php to /config.php and enter your api credentials.
Point a apache/lighttpd/nginx vhost to the minimal/ directory and restart.
Open http://url-to-your-vhost
## connect with flattr sample
sample app that implements a connect with flattr (based on sessions, no database, using coltrane framework)
see connect\_with\_flattr/
----
Documentation at [http://developers.flattr.net/](http://developers.flattr.net/)
Questions: [StackOverflow](http://stackoverflow.com/questions/tagged/flattr)
Feedback: [twitter](https://twitter.com/#!/flattr)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment