johnrivs / wunderlist Goto Github PK
View Code? Open in Web Editor NEWSDK for the latest Wunderlist API version.
Home Page: http://johnrivs.github.io/wunderlist/
License: MIT License
SDK for the latest Wunderlist API version.
Home Page: http://johnrivs.github.io/wunderlist/
License: MIT License
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.
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.
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 ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.