InterMine > Webservice-InterMine-1.0102 > Webservice::InterMine::Cookbook::Templates::Recipe2

Download:
Webservice-InterMine-1.0102.tar.gz

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Source   Latest Release: Webservice-InterMine-1.0405

NAME ^

Webservice::InterMine::Cookbook::Templates::Recipe2 - Logging in to access your templates

SYNOPSIS ^

  use Webservice::InterMine ('www.flymine.org/query/service', $user, $pass);

  ## Run your super secret private template gene -> cure for cancer
  my $template = Webservice::InterMine->template('Gene_To_Cure_For_Cancer');
      or die "Could not find template";

  my $results  = $template->results_with(value1 => 'Drosophila melanogaster');

DESCRIPTION ^

As long as you have provided your login information to the service, you will be able to access your saved templates and lists.

The template can be accessed and used as any other template, both via the API and through the webapp. Don't forget that you can manage your templates through the webapp interface, which in many cases might be more straightforward than using this programmatic API.

CONCLUSION ^

If you have set up templates in a webapp, you can access them anywhere by using your login details.

syntax highlighting: