Catalyst-Model-WebService-MyGengo

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN

    In your model class:

        package MyApp::Model::MyGengo;
    
        use strict;
        use parent qw( Catalyst::Model::WebService::MyGengo );
    
        __PACKAGE__->config({
            class           => 'WebService::MyGengo::Client'
            , public_key    => 'your API public key'
            , private_key   => 'your API private key'
            , use_sandbox   => 0    # Whether to use the production site or the sandbox
            # See WebService::MyGengo::Client for other options
            });
    
        1;

    Or in your myapp.conf or myapp_local.conf file ( be sure to escape any #
    characters in your keys (eg \#) ):

        <Model::MyGengo>
            class           WebService::MyGengo::Client
            public_key      my-sandbox-pubkey
            private_key     my-sandbox-privkey
            use_sandbox     1
        </Model::MyGengo>

    Then, in a controller:

        # Grab a WebService::MyGengo::Job
        my $job = $c->model('MyGengo')->get_job( 123 );

        # Add comments, etc.
        $job = $c->model('MyGengo')->add_job_comment( $job, "Nicey nice nice!" );

README.mkdn  view on Meta::CPAN

    package MyApp::Model::MyGengo;
    

    use strict;
    use parent qw( Catalyst::Model::WebService::MyGengo );
    

    __PACKAGE__->config({
        class           => 'WebService::MyGengo::Client'
        , public_key    => 'your API public key'
        , private_key   => 'your API private key'
        , use_sandbox   => 0    # Whether to use the production site or the sandbox
        # See WebService::MyGengo::Client for other options
        });
    

    1;

Or in your myapp.conf or myapp_local.conf file ( be sure to escape any #
characters in your keys (eg \#) ):

    <Model::MyGengo>
        class           WebService::MyGengo::Client
        public_key      my-sandbox-pubkey
        private_key     my-sandbox-privkey
        use_sandbox     1
    </Model::MyGengo>

Then, in a controller:

    # Grab a WebService::MyGengo::Job
    my $job = $c->model('MyGengo')->get_job( 123 );

    # Add comments, etc.
    $job = $c->model('MyGengo')->add_job_comment( $job, "Nicey nice nice!" );

lib/Catalyst/Model/WebService/MyGengo.pm  view on Meta::CPAN

In your model class:

    package MyApp::Model::MyGengo;
    
    use strict;
    use parent qw( Catalyst::Model::WebService::MyGengo );
    
    __PACKAGE__->config({
        class           => 'WebService::MyGengo::Client'
        , public_key    => 'your API public key'
        , private_key   => 'your API private key'
        , use_sandbox   => 0    # Whether to use the production site or the sandbox
        # See WebService::MyGengo::Client for other options
        });
    
    1;

Or in your myapp.conf or myapp_local.conf file ( be sure to escape any #
characters in your keys (eg \#) ):

    <Model::MyGengo>
        class           WebService::MyGengo::Client
        public_key      my-sandbox-pubkey
        private_key     my-sandbox-privkey
        use_sandbox     1
    </Model::MyGengo>

Then, in a controller:

    # Grab a WebService::MyGengo::Job
    my $job = $c->model('MyGengo')->get_job( 123 );

    # Add comments, etc.
    $job = $c->model('MyGengo')->add_job_comment( $job, "Nicey nice nice!" );

 view all matches for this distribution
 view release on metacpan -  search on metacpan

( run in 0.492 second using v1.00-cache-2.02-grep-82fe00e-cpan-b63e86051f13 )