Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

oAuth help

by landon (Initiate)
on Mar 03, 2013 at 14:05 UTC ( #1021504=perlquestion: print w/replies, xml ) Need Help??
landon has asked for the wisdom of the Perl Monks concerning the following question:

I have just gotten into programming, and I am trying to understand the basics. One of the first programs I am trying to write is in perl, on linux, posting to tumblr. I have installed all pre-reqs, but need some help to get started. I am trying to write a script that will post an image to tumblr (Example: image.jpg). I have looked around this forum, and the internet for some help to get started, but can not find or make sense of the information that has been given to me. I am looking for someone to help me write a perl scipt for some help in this area. I do not want them to do it for me, but help... I am trying to do this as a learning experience. Thank you in advance.

Replies are listed 'Best First'.
Re: oAuth help
by roboticus (Chancellor) on Mar 03, 2013 at 15:58 UTC


    I think you may be biting off a bit more than you can chew. If your first program is (a) in a new language, (b) accessing the network, (c) accessing a remote API, (d) ...etc... then you've got too many unknowns at once. If something doesn't work, you won't know where to look first.

    I think you'd be better off learning one new thing at a time. It will probably let you learn better *and* more quickly. So first learn your new language with a few simple tasks. Then, when you're confident with your knowledge of perl, do a few simple networking tasks. Then keep building on your knowledge.

    It may seem like a long, roundabout way to do things, but there's no royal road to programming.

    Update: When I learn a new programming language, usually the first two programs I write (after the obligatory 'hello, world') are the Queen's problem and the Knight's tour. There are plenty of interesting puzzles that don't require network access, complex libraries, and so on.


    When your only tool is a hammer, all problems look like your thumb.

      Thanks for the post, I have never heard of the Royal Road before, it was something interesting to read. I have done very simple programs before in a few different programming languages, but nothing that complex. This is the next chapter in my little hobby. I am trying to learn how to do API's, and network access. I figured that this would kill two birds with one stone. Perhaps you have a recommendation or project to suggest to learn these, that may be a little easier? Thanks for the help.
Re: oAuth help
by jms53 (Monk) on Mar 03, 2013 at 15:46 UTC

    Not the most accessible of projects, but you might be interested in the tumblr api: API.

    Not sure if you will be needing a web module such as Mechanize, but these should both be good reads

    J -
Re: oAuth help
by Anonymous Monk on Mar 03, 2013 at 16:19 UTC

    I have installed all pre-reqs, but need some help to get started.

    You know what the pre-reqs are? What are they?

      For oAuth its just pretty much just perl, and the oauth perl module.
Re: oAuth help
by aitap (Curate) on Mar 04, 2013 at 16:01 UTC

    Are you writing your first program? Check perldoc perlintro and Are you confused by Perl Object-Oriented system? perlobj should help. Do you want to know how to work with complicated (multi-level) data structures? Read perlreftut and perldsc.

    You have already installed some modules; their documentation is easily accessible via CPAN website or using perldoc; what's exactly your problem now? Please ask more specific questions because such questions are a lot easier to understand and to answer.

    Sorry if my advice was wrong.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1021504]
Approved by tobyink
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2018-05-27 22:38 GMT
Find Nodes?
    Voting Booth?