The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

GitHub::Jobs - This module is a wrapper around the GitHub Jobs API.

VERSION

Version 0.05

SUBROUTINES/METHODS

BUILD

Check if description parameter is empty!

Generate URL with parameters values and send HTTP Request!

SYNOPSIS

This module is the implementation of a interface to the GitHub Jobs API (as available on https://jobs.github.com/api)

	use strict;
	use warnings;

	use GitHub::Jobs;
	use JSON::XS;
	use POSIX;

	$|++;

	my $query      = 'software';
	my $count      = 0;
	my $pagination = 0;

	sub initial {
    	 my $page = shift;
    	 my $str = GitHub::Jobs->new( description => $query, page => $page );
    	 return JSON::XS::decode_json( $str->search() );
	}

	sub decode {
    	 foreach my $items ( @{ initial($pagination) } ) {
          print $items->{title} . " ---- ";
          print $items->{company} . "\n";
          $count++;
    	}
    	my $page_count = ceil( ( $count / 50 ) );
    	if ( ($page_count) && ( $page_count != $pagination ) ) {
         $pagination = $page_count;
         &decode;
    	}
	}

	decode;

AUTHOR

Ovidiu Nita Tatar, <ovn.tatar at gmail.com>

BUGS

Please report any bugs or feature requests to bug-github-jobs at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=GitHub-Jobs. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

or https://github.com/ovntatar/GitHub-Jobs/issues

SUPPORT

You can find documentation for this module with the perldoc command.

 perldoc GitHub::Jobs

 https://github.com/ovntatar/GitHub-Jobs

You can also look for information at:

LICENSE AND COPYRIGHT

Copyright 2013 Ovidiu Nita Tatar.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.