GithubHelp home page GithubHelp logo

johnrivs / wunderlist Goto Github PK

View Code? Open in Web Editor NEW
13.0 3.0 8.0 185 KB

SDK for the latest Wunderlist API version.

Home Page: http://johnrivs.github.io/wunderlist/

License: MIT License

PHP 100.00%
wunderlist-api php composer wunderlist

wunderlist's People

Contributors

johnrivs avatar screenager avatar slowprog avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

wunderlist's Issues

The herrera-io package is abandoned and no longer maintained. The author suggests using the kherge/json package instead.

symfony/console suggests installing symfony/event-dispatcher
symfony/console suggests installing symfony/process
nette/utils suggests installing ext-intl (for script transliteration in Strings::webalize() and toAscii())
nette/application suggests installing nette/forms (Allows to use Nette\Application\UI\Form)
Package herrera-io/version is abandoned, you should avoid using it. No replacement was suggested.
Package herrera-io/json is abandoned, you should avoid using it. Use kherge/json instead.
Package herrera-io/phar-update is abandoned, you should avoid using it. No replacement was suggested.

Not able to create task

Hi John

I am using your wunderlist api wrapper for one of my projects using kohana framework but have got stuck at creating task.

Guzzle is throwing this error: [status code] 400 [reason phrase] Bad Request

My create task method is something like this:

public function create_task ($access_token, $task_params) {
    $attributes = array (
        'list_id' => $task_params['list'], 
        'title'   => $task_params['title']
    );

    $this->wunderlist = new Wunderlist(OAUTH_WUNDERLIST_CLIENT_ID, OAUTH_WUNDERLIST_CLIENT_SECRET, $access_token);
    
    return $this->wunderlist->call('POST', 'tasks',  $attributes);
}

I have modified the call method a bit as guzzle was not creating the request properly. It looks like this now:

public function call($httpMethod, $endpoint, array $parameters = []) { 
    $parameters = array_merge([
        'headers' => $this->getHeaders(),
    ], [
        'body' => $parameters
    ]);

    $request = $this->http->createRequest($httpMethod, $this->baseUrl . $endpoint, $parameters);

    $response = $this->http->send($request);
}

I tried using the createTask method provided but still got the same response. Any ideas ?

(noob) question about initializing

Hi John

I've been testing out your wunderlist api wrapper, but I'm already stuck... :-)
I'm not using any framework as suggested in your documentation.
My folder structure looks like this:

httpdocs
  includes
    wunderlist
       Wunderlist.php
       Authorization.php
       ...
  index.php

Now, in my index.php, I am trying to include the files. I was looking for an autoload.php file, but this does not seem to be included. I thus guessed the right file to include was Wunderlist.php. Please note that in my code, I have included the right clientID, clientSecret and accessToken.

<?php
require_once __DIR__.'/includes/wunderlist/Wunderlist.php';

use JohnRivs\Wunderlist\Wunderlist;

$clientId     = 'xxx';
$clientSecret = 'xxx';
$accessToken  = 'xxx';

$w = new Wunderlist($clientId, $clientSecret, $accessToken);

$w->getCurrentUser();
?>

If I try this, I get the error message:

Fatal error: Trait 'JohnRivs\Wunderlist\Authorization' not found in /var/www/vhosts/mydomain.be/subdomains/planning/httpdocs/includes/wunderlist/Wunderlist.php on line 8

This is probably a trivial question, but could you possible get me going? It'd be a great help.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.