kijin / pinboard-api Goto Github PK
View Code? Open in Web Editor NEWPinboard API Client in PHP
Pinboard API Client in PHP
SimpleXML is converting newlines to spaces so my descriptions are not coming out right.
Any chance you can do something to fix?
Suggestions here: http://stackoverflow.com/questions/1457333/php-simplexml-doesnt-preserve-line-breaks-in-xml-attributes
I get this error regularly:
[2016-02-14 21:00:12] production.ERROR: exception
'PinboardException_ConnectionError' with message 'name lookup timed
out' in
/home/edalzell/thedalzells.org/statamic/vendor/kijin/pinboard-api/pinboard-api.php:382
Stack trace: #0
/home/edalzell/thedalzells.org/statamic/vendor/kijin/pinboard-api/pinboard-api.php(118):
PinboardAPI->_remote('posts/all', Array) #1
/home/edalzell/thedalzells.org/site/addons/Pinboard/Pinboard.php(93):
PinboardAPI->get_all(NULL, NULL, 'lb', 1455512102) #2
Is this something on your end??
when trying to authenticate by token (credentials are ok, tested with get request in browser) i get an error.
include 'pinboard-api.php';
$pinboard = new PinboardAPI('hansspiess', 'my_api_token');
$recent = $pinboard->get_recent();
var_dump($recent);
Exception: Authentication failure (using password
is the token auth method broken or am i missing something?
In the browser ... when I lookup t:Opinion ... i can see content with tag:opinion as well as tag:Opinion
in the api ... it is matching exact case - is it an issue in the posts_all in the core?
pls advise
I'm wondering if it's possible to get them using get_all()
-- Just read that tag bundles are not available on the API.
I have updated your library to use a token instead of user:pass. Want me to submit it?
The API token, as currently displayed on the pinboard settings page, includes lowercase letters. The regex in this library (and, to be fair, the documentation) assumes uppercase only.
If you pass in a timestamp to the get call that is an int in string format (i.e. '1234567') it is not properly cast to an int. This means the date 1970-01-01 is used for your retrieval which was unexpected.
Can you please set the return to null or something so I know when there are no results?
I see this error in my logs periodically:
[2016-10-13 05:50:12] production.ERROR: exception 'ErrorException'
with message 'Invalid argument supplied for foreach()' in
/home/edalzell/thedalzells.org/statamic/vendor/kijin/pinboard-api/pinboard-api.php:432
Stack trace: #0
Perhaps a bit more param checking is needed?
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.