Skip to content

khalidelboray/Pastebin-Pasteee

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

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

Pastebin::Pasteee

DESCRIPTION

use paste.ee API via Raku

Example

    use Pastebin::Pasteee::Paste;
    use Pastebin::Pasteee::Paste::Section; 
    use Pastebin::Pasteee;
    my $p = Pastebin::Pasteee.new: :token<your_api_token>;
    my $paste-url = $p.paste:
            Pastebin::Pasteee::Paste.new: :description("Test"),
                    :sections(
                        Pastebin::Pasteee::Paste::Section.new: 
                            :name<Section1>, 
                            :syntax<perl>, 
                            :contents('print "Hellow World!"')
                    );
    say $paste-url; # https://paste.ee/p/<paste_id>

class Pastebin::Pasteee

use paste.ee API via Raku

method pastes

method pastes(
    Int :$page = 1,
    Int :$perpage = 25
) returns Mu

Get user pastes.

multi method paste

multi method paste(
    Pastebin::Pasteee::Paste :$paste!
) returns Mu

Create a paste

multi method paste

multi method paste(
    Str $id
) returns Mu

Fetch Paste info

multi method paste

multi method paste(
    Str $id,
    Bool :$delete!
) returns Mu

Delete a paste

method delete

method delete(
    Str $id
) returns Mu

Delete a paste

method fetch

method fetch(
    Str $id
) returns Mu

Fetch Paste info

method info

method info() returns Mu

User/key information

About

Pastebin::Pasteee - use paste.ee API via Raku

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages