<?php

require "config.php";
require "lib/OAuth.php";
include "../../lib/v1/src/dawanda.php";
$dawanda_oauth = new DaWandaOAuth($key, $secret, "de");
$dawanda_oauth->requestAuthorization("index.php");
<?php

require_once 'config.php';
require_once "lib/OAuth.php";
include "../../lib/v1/src/dawanda.php";
session_start();
$dawanda_oauth = new DaWandaOAuth($key, $secret, "de");
if ($_REQUEST['token'] && $_REQUEST['token_secret']) {
    $access_token = $dawanda_oauth->getAccessToken($_REQUEST['token'], $_REQUEST['token_secret']);
    $dawanda_oauth->saveAccessToken($access_token);
    Header("Location: index.php");
}
$access_token = $dawanda_oauth->loadAccessToken();
$user = $dawanda_oauth->getUserDetails($access_token);
$orders = $dawanda_oauth->getOrders($access_token);
$date_orders = $dawanda_oauth->getOrders($access_token, time());
?>

<html>
  <head>
    <style>
      html, body {
        font-family: Verdana;
        font-size: 12px;
        min-height: 100%;
        padding: 0px;
        margin: 0px;
      }

      #outer_container {
        width: 900px;