Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
t
 
 
xt
 
 
 
 
 
 
 
 
 
 
 
 

NAME

Pastebin::Shadowcat - Raku interface to http://fpaste.scsys.co.uk/

SYNOPSIS

use Pastebin::Shadowcat;

my $p = Pastebin::Shadowcat.new;
say "Pasting test content:";
my $paste_url = $p.paste('<pre>test paste1</pre>', 'My optional summary');
say "Paste is located at $paste_url";

say "Retrieiving paste content:";
my ( $content, $summary ) = $p.fetch('http://fpaste.scsys.co.uk/471157');
say "Summary: $summary";
say "Content: $content";

DESCRIPTION

This module allows to paste to http://fpaste.scsys.co.uk/ pastebin as well as retrieve content from existing pastes.

METHODS

new

my $p = Pastebin::Shadowcat.new;

Creates new Pastebin::Shadowcat object.

paste

my $paste_url = $p.paste('Paste content');
my $paste_url = $p.paste('Paste content', 'Optional summary');

Returns URL to the created paste (e.g. http://fpaste.scsys.co.uk/471157). fails on error. Takes one mandatory and one optional arguments: the content to paste and optional sumary.

fetch

my ( $content, $summary ) = $p.fetch('http://fpaste.scsys.co.uk/471157');

my ( $content, $summary ) = $p.fetch('471157');

Returns a two-item list: paste content and paste summary. fails on error. Takes one mandatory argument: a full URL or just the ID number of the paste you want to retrieve.

REPOSITORY

Fork this module on GitHub: https://github.com/raku-community-modules/Pastebin-Shadowcat

BUGS

To report bugs or request features, please use https://github.com/raku-community-modules/Pastebin-Shadowcat/issues

AUTHOR

Zoffix Znet http://zoffix.com/

LICENSE

You can use and distribute this module under the same terms as Raku itself. See the LICENSE file included in this distribution for complete details.

About

Raku module to use http://fpaste.scsys.co.uk/ pastebin

Topics

Resources

License

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages