Skip to content
This repository has been archived by the owner on Oct 10, 2019. It is now read-only.

Commit

Permalink
Merge pull request #322 from skn/upstream
Browse files Browse the repository at this point in the history
Cosmetic cleanup of contrib/pinboard.pl
  • Loading branch information
Minoru authored Jun 13, 2016
2 parents 9f2deae + 4dbef36 commit 157c035
Showing 1 changed file with 20 additions and 8 deletions.
28 changes: 20 additions & 8 deletions contrib/pinboard.pl
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,30 @@
use LWP::UserAgent;
use URI::Escape;

# $ARGV[0] is the URL of the article
# $ARGV[1] is the title of the article

# Daemonising the bookmarking process
# Use this only is you are sure things
# are working as expected
######## User settings #############
# Daemonise the bookmarking process
# Use this only if you are sure things
# are working as expected. Needs the
# Proc::Daemon Perl module
# set to '0' if not needed
my $daemon = 1;


# Change the tag value to what you
# want the bookmarks to be tagged as
# at Pinboard
my $tag='newsbeuter';

# Get yours at https://pinboard.in/settings/password
# Of the form 'username:alphanumeric'
my $API_token='***REPLACE***';
######## No user settings below this line #############


# $ARGV[0] is the URL of the article
# $ARGV[1] is the title of the article

if ($daemon){
eval{
require Proc::Daemon;
Expand All @@ -27,9 +42,6 @@

my $API_URL='https://api.pinboard.in/v1/posts/add?';
my $bkmrk_url='';
my $tag='newsbeuter';
my $API_token='***REPLACE***'; # Get yours at https://pinboard.in/settings/password
# Of the form 'username:alphanumeric'

# Get redirected URL's permalink
my $ua = LWP::UserAgent->new(
Expand Down

0 comments on commit 157c035

Please sign in to comment.