Skip to content
This repository has been archived by the owner on Jan 22, 2019. It is now read-only.

Commit

Permalink
Clarifies that new_from_string expects a string in JSON format.
Browse files Browse the repository at this point in the history
  • Loading branch information
oalders authored and ashb committed Apr 18, 2013
1 parent e8da774 commit e5eeb64
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/Net/HTTP/Spore.pm
Expand Up @@ -151,6 +151,9 @@ sub _add_methods {
my $client = Net::HTTP::Spore->new_from_spec('twitter.json');
# from JSON specification string
my $client = Net::HTTP::Spore->new_from_string($json);
# for identica
my $client = Net::HTTP::Spore->new_from_spec('twitter.json', base_url => 'http://identi.ca/com/api');
Expand Down Expand Up @@ -202,7 +205,7 @@ either be a file on disk or a remote URL.
=item new_from_string($specification_string, %args)
Create and return a L<Net::HTTP::Spore::Core> object, with methods
generated from the specification string.
generated from a JSON specification string.
=back
Expand Down

0 comments on commit e5eeb64

Please sign in to comment.