Metabase-Client-Simple

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN


    This is the object constructor.

    Valid arguments are:

      profile - a Metabase::User::Profile object
      secret  - a Metabase::User::Secret object
      uri     - the root URI for the metabase server

    If you use a "uri" argument with the 'https' scheme, you must have
    IO::Socket::SSL and Net::SSLeay installed. You may also require
    Mozilla::CA.

  submit_fact
      $client->submit_fact($fact);

    This method will submit a Metabase::Fact object to the client's server.
    On success, it will return a true value. On failure, it will raise an
    exception.

  guid_exists

lib/Metabase/Client/Simple.pm  view on Meta::CPAN

#pod
#pod This is the object constructor.
#pod
#pod Valid arguments are:
#pod
#pod   profile - a Metabase::User::Profile object
#pod   secret  - a Metabase::User::Secret object
#pod   uri     - the root URI for the metabase server
#pod
#pod If you use a C<uri> argument with the 'https' scheme, you must have
#pod L<IO::Socket::SSL> and L<Net::SSLeay> installed.  You may also
#pod require L<Mozilla::CA>.
#pod
#pod =cut

sub new {
    my ( $class, @args ) = @_;

    my $args = $class->__validate_args( \@args, { map { $_ => 1 } @valid_args } );

    # uri must have a trailing slash

lib/Metabase/Client/Simple.pm  view on Meta::CPAN


This is the object constructor.

Valid arguments are:

  profile - a Metabase::User::Profile object
  secret  - a Metabase::User::Secret object
  uri     - the root URI for the metabase server

If you use a C<uri> argument with the 'https' scheme, you must have
L<IO::Socket::SSL> and L<Net::SSLeay> installed.  You may also
require L<Mozilla::CA>.

=head2 submit_fact

  $client->submit_fact($fact);

This method will submit a L<Metabase::Fact|Metabase::Fact> object to the
client's server.  On success, it will return a true value.  On failure, it will
raise an exception.



( run in 1.022 second using v1.01-cache-2.11-cpan-4d50c553e7e )