This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| perl_client_library [2011/01/04 21:53] – jay | perl_client_library [2011/11/10 19:34] (current) – jay | ||
|---|---|---|---|
| Line 15: | Line 15: | ||
| SYNOPSIS | SYNOPSIS | ||
| use Lib4theFileAPI; | use Lib4theFileAPI; | ||
| - | my $api = Lib4theFileAPI-> | + | my $api = Lib4theFileAPI-> |
| + | | ||
| + | $api-> | ||
| # list resources for collection ESuVkqZF that have tag " | # list resources for collection ESuVkqZF that have tag " | ||
| Line 36: | Line 38: | ||
| INSTANCE METHODS | INSTANCE METHODS | ||
| - | response(); | + | response() |
| returns an HTTP:: | returns an HTTP:: | ||
| especially useful if previous call returned undef indicating a | especially useful if previous call returned undef indicating a | ||
| problem | problem | ||
| + | |||
| + | test_connect() | ||
| + | attempts a call to the resource_list API method and returns 1 if connection was successful and valid data | ||
| + | received. returns undef if connection failed (use response-> | ||
| + | from the http connection), | ||
| + | the server | ||
| resource_list([$query]) | resource_list([$query]) | ||
| Line 88: | Line 96: | ||
| does not delete resource from 4theFile. | does not delete resource from 4theFile. | ||
| - | AUTHOR | ||
| - | created by: jay; Fri Nov 5 16:58:42 2010 | ||
| - | |||
| - | last revised: | ||
| </ | </ | ||