For Programmers: Free Programming Magazines  


Home > Archive > PERL Miscellaneous > August 2005 > Wrote a eBayAPI perl module, how to release it to CPAN?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Wrote a eBayAPI perl module, how to release it to CPAN?
Ignoramus23186

2005-08-29, 6:59 pm

I am looking for helpful (as opposed to unhelpful) replies.

I wrote a simple eBayAPI perl module XML::eBayAPI. It allows sending
programmatic queries to eBay using XML based eBay API.

Its use is as follows:

my $ebay = new XML::eBayAPI( {
site_level => 'prod',
DeveloperKey => '...',
ApplicationKey => '...',
CertificateKey => '...',
Token => '...',
} );

$ebay->submitRequest( "AddItem",
{
DetailLevel => "0",
ErrorLevel => "1",
SiteId = > "0",
Verb => " AddItem",
Category => "14111",
CheckoutDetailsSpecified => "0",
Country => "us",
Currency => "1",
Description => "For sale is like new <A HREF=http://www.example.com/jhds/>thingamabob</A>.Shipping is responsibility of the buyer.",
Duration => "7",
Location => "Anytown, USA, 43215",
Gallery => 1,
GalleryURL => 'http://igor.chudov.com/images/mark_mattson.jpg',
MinimumBid => "0.99",
BuyItNowPrice => 19.99,
PayPalAccepted => "1",
PayPalEmailAddress => "ichudov\@example.com",
Quantity => "1",
Region => "60",
Title => "Igor's Item with Gallery xaxa",
}
);

that would add an item for sale on ebay.

My question is, how do I make a nice CPAN distribution out of that
module, so that it installs with MakeMaker, or whatever. There is a
nice Python system called pyeBay, but not much for perl, that I could
have found. So, I wanted to release something simple and easy.


i

John Bokma

2005-08-29, 6:59 pm

Ignoramus23186 <ignoramus23186@NOSPAM.23186.invalid> wrote:

> I am looking for helpful (as opposed to unhelpful) replies.
>
> I wrote a simple eBayAPI perl module XML::eBayAPI. It allows sending
> programmatic queries to eBay using XML based eBay API.



I think that XML::eBayAPI is not the best name.

There is something similar for Google, and it's called Net::Google. There
is also a Net::Amazon.

I don't want to discuss if the Net name is a good one, only that I would
expect an Net::eBay, not an XML::eBayAPI. That is uses XML doesn't matter,
a module should be an abstraction. Also, that it's an API is clear :-)

Just my 2 pesos :-)

--
John Small Perl scripts: http://johnbokma.com/perl/
Perl programmer available: http://castleamber.com/
Happy Customers: http://castleamber.com/testimonials.html

Ignoramus23186

2005-08-29, 6:59 pm

On 29 Aug 2005 21:22:01 GMT, John Bokma <john@castleamber.com> wrote:
> Ignoramus23186 <ignoramus23186@NOSPAM.23186.invalid> wrote:
>
>
>
> I think that XML::eBayAPI is not the best name.


I am completely open to different suggestions. eBayAPI is the name of
the API, and XMLis there because it is XML based. I am not "married"
to any particular name.

> There is something similar for Google, and it's called Net::Google. There
> is also a Net::Amazon.
>
> I don't want to discuss if the Net name is a good one, only that I would
> expect an Net::eBay, not an XML::eBayAPI. That is uses XML doesn't matter,
> a module should be an abstraction. Also, that it's an API is clear :-)


Okay, so, let's say I will call it Net::eBay. Fine with me.

How do I make it into a nice CPAN distro?

i

J. Gleixner

2005-08-29, 6:59 pm

Ignoramus23186 wrote:

> Okay, so, let's say I will call it Net::eBay. Fine with me.
>
> How do I make it into a nice CPAN distro?


Start with the FAQ, on CPAN.

http://cpan.org/misc/cpan-faq.html

ExtUtils::MakeMaker is your friend. :-)


John Bokma

2005-08-29, 9:56 pm

Ignoramus23186 <ignoramus23186@NOSPAM.23186.invalid> wrote:

> On 29 Aug 2005 21:22:01 GMT, John Bokma <john@castleamber.com> wrote:


[ snip ]

>
> Okay, so, let's say I will call it Net::eBay. Fine with me.


I see now and then module naming questions pop up in
comp.lang.perl.modules, so maybe it's a good place to ask there.

> How do I make it into a nice CPAN distro?


<http://cpan.org/misc/cpan-faq.html#...tribute_modules>

I seem to remember that h2xs has an option to make a directory structure
and the necessary initial files which is often used to make CPAN distros.
(I.e. the README, INSTALL, etc. Note that you have to edit several of those
files)

--
John Small Perl scripts: http://johnbokma.com/perl/
Perl programmer available: http://castleamber.com/
Happy Customers: http://castleamber.com/testimonials.html

Ignoramus23186

2005-08-29, 9:56 pm

On 30 Aug 2005 01:32:32 GMT, John Bokma <john@castleamber.com> wrote:
> Ignoramus23186 <ignoramus23186@NOSPAM.23186.invalid> wrote:
>
>
> [ snip ]
>
>
> I see now and then module naming questions pop up in
> comp.lang.perl.modules, so maybe it's a good place to ask there.
>
>
><http://cpan.org/misc/cpan-faq.html#...tribute_modules>
>
> I seem to remember that h2xs has an option to make a directory structure
> and the necessary initial files which is often used to make CPAN distros.
> (I.e. the README, INSTALL, etc. Note that you have to edit several of those
> files)
>


What I recall is that there is a super nice system for making
Makefile.PL and whatnot, make test etc. Unfortunately, I forgot the
name of that system.

i
--

John Bokma

2005-08-29, 9:56 pm

Ignoramus23186 <ignoramus23186@NOSPAM.23186.invalid> wrote:

> On 30 Aug 2005 01:32:32 GMT, John Bokma <john@castleamber.com> wrote:

[..]
[color=darkred]
>
> What I recall is that there is a super nice system for making
> Makefile.PL and whatnot, make test etc. Unfortunately, I forgot the
> name of that system.


h2xs? And yeah, it's easy to forget :-)

However: <http://www.platypiventures.com/perl...odules/001.html>

So forget it again (and I have bookmarked that page, so thanks :-)

--
John Small Perl scripts: http://johnbokma.com/perl/
Perl programmer available: http://castleamber.com/
Happy Customers: http://castleamber.com/testimonials.html

Jim Gibson

2005-08-29, 9:56 pm

In article <41PQe.110808$f24.52815@fe18.usenetserver.com>,
Ignoramus23186 <ignoramus23186@NOSPAM.23186.invalid> wrote:

> On 30 Aug 2005 01:32:32 GMT, John Bokma <john@castleamber.com> wrote:

[snip]
[color=darkred]
>
> What I recall is that there is a super nice system for making
> Makefile.PL and whatnot, make test etc. Unfortunately, I forgot the
> name of that system.


See 'perldoc perlnewmod' and 'perldoc module-starter' for information
on the module-starter utility.


----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= East/West-Coast Server Farms - Total Privacy via Encryption =---
Ignoramus23186

2005-08-30, 3:56 am

Thanks, I just created a distro and submitted it to cpan.

i

On Mon, 29 Aug 2005 19:24:40 -0700, Jim Gibson <jgibson@mail.arc.nasa.gov> wrote:
> In article <41PQe.110808$f24.52815@fe18.usenetserver.com>,
> Ignoramus23186 <ignoramus23186@NOSPAM.23186.invalid> wrote:
>
>
> [snip]
>
>
> See 'perldoc perlnewmod' and 'perldoc module-starter' for information
> on the module-starter utility.
>
>
> http://www.newsfeeds.com The #1 Newsgroup Service in the World! >100,000 Newsgroups



--

Anno Siegel

2005-08-30, 7:56 am

Ignoramus23186 <ignoramus23186@NOSPAM.23186.invalid> wrote in comp.lang.perl.misc:
> I am looking for helpful (as opposed to unhelpful) replies.


Thanks for telling us.

Anno
--
If you want to post a followup via groups.google.com, don't use
the broken "Reply" link at the bottom of the article. Click on
"show options" at the top of the article, then click on the
"Reply" at the bottom of the article headers.
Sherm Pendley

2005-08-30, 7:56 am

Ignoramus23186 <ignoramus23186@NOSPAM.23186.invalid> writes:

> I am looking for helpful (as opposed to unhelpful) replies.


I would have been happy to help, but not after being insulted.

Sorry.

sherm--

--
Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org
Tad McClellan

2005-08-30, 6:58 pm

John Bokma <john@castleamber.com> wrote:
> Ignoramus23186 <ignoramus23186@NOSPAM.23186.invalid> wrote:



>
> h2xs? And yeah, it's easy to forget :-)



But the Perl FAQ isn't. :-) :-)

perldoc -q 'create a module'


--
Tad McClellan SGML consulting
tadmc@augustmail.com Perl programming
Fort Worth, Texas
Peter Scott

2005-08-30, 6:58 pm

On Mon, 29 Aug 2005 20:57:24 +0000, Ignoramus23186 wrote:
> My question is, how do I make a nice CPAN distribution out of that
> module, so that it installs with MakeMaker, or whatever.


Sam Tregar wrote a good book on this topic, and IMHO it is
underappreciated, so I am glad for the opportunity to plug it:

Writing Perl Modules for CPAN
Sam Tregar
APress

--
Peter Scott
http://www.perlmedic.com/
http://www.perldebugged.com/

Ignoramus8644

2005-08-30, 6:58 pm

I will check it out. I already uploaded my module and will son do
another upload.

i

On Tue, 30 Aug 2005 13:36:56 GMT, Peter Scott <Peter@PSDT.com> wrote:
> On Mon, 29 Aug 2005 20:57:24 +0000, Ignoramus23186 wrote:
>
> Sam Tregar wrote a good book on this topic, and IMHO it is
> underappreciated, so I am glad for the opportunity to plug it:
>
> Writing Perl Modules for CPAN
> Sam Tregar
> APress
>



--

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com