[RPS] Initial Rails attempt

pat eyler pat.eyler at gmail.com
Tue Jul 26 22:45:33 EDT 2005


I have tried it with my key as well as with the test key, neither works for me.

On 7/26/05, Sean Carley <seanacarley at gmail.com> wrote:
> I am starting to wonder if get_persons_entries is only broken for the
> test api key.  Have you tried running it with the key it had to see if
> it works that way?
> 
> Sean
> 
> On 7/26/05, pat eyler <pat.eyler at gmail.com> wrote:
> > On 7/26/05, Chris Roos <chris at seagul.co.uk> wrote:
> > > This is very very very simple.  In fact, it's basically crap.  However,
> > > what it does do is use the r43 lib to get the goals and completed_things
> > > for a user and then display them in a web page (with absolutely zero style).
> >
> > Looks like a good start.   Shall I try to componentize this on my ride in
> > tomorrow or do you want to play a bit further.  In any case, it's a nice
> > proof of concept.
> >
> > >
> > > Extract, cd to r43rails directory and run 'ruby script\server'.
> > > Navigate to localhost:3000 and enter a 43things user to display their
> >
> > actually, you need to go to localhost:3000/r43/  but it's all good.
> >
> > > goals and completed_things.
> > >
> >
> >
> >
> > Earlier, you'd asked about Thomas' code working for the
> > get_persons_entries while ours didn't.  Here's the part of his code
> > that grabs the content:
> >
> >
> >   def update_feed_fortythree(fortythree_feed_row, fortythree_feed_account)
> >
> >     key = "1234" # set back to the testing id
> >
> >     base = "http://www.43things.com/service/"
> >
> >     begin
> >
> >       goals_feed =
> > open("#{base}get_person?api_key=#{key}&id=#{fortythree_feed_account}").read
> >
> >       completed_feed =
> > open("#{base}get_persons_completed_things?api_key=#{key}&id=#{fortythree_feed_account}").read
> >
> >       entries_feed =
> > open("#{base}get_persons_entries?api_key=#{key}&id=#{fortythree_feed_account}").read
> >
> >
> >
> >       if fortythree_feed = FortythreeFeed.find(fortythree_feed_row)
> >
> >         fortythree_feed.goals = goals_feed
> >
> >         fortythree_feed.completed = completed_feed
> >
> >         fortythree_feed.entries = entries_feed
> >
> >         fortythree_feed.save
> >
> >       end
> >
> >
> >
> >     rescue
> >
> >         # prevent 404 error
> >
> >     end
> >
> >   end
> >
> >
> >
> > but when I run the resulting URL through a browser I get pagination and
> > no data, so I'm not sure what's happening
> >
> >
> >
> > > Chris
> > >
> >
> > --
> > thanks,
> > -pate
> > -------------------------
> > We are often unable to tell people what they need to know, because
> > they want to know something else, and would therefore only
> > misunderstand what we said
> > - the Raven   (George MacDonald, Lilith)
> >
> > _______________________________________________
> > Therps-discuss mailing list
> > Therps-discuss at rubyforge.org
> > http://rubyforge.org/mailman/listinfo/therps-discuss
> >
> 
> _______________________________________________
> Therps-discuss mailing list
> Therps-discuss at rubyforge.org
> http://rubyforge.org/mailman/listinfo/therps-discuss
> 


-- 
thanks,
-pate
-------------------------
We are often unable to tell people what they need to know, because 
they want to know something else, and would therefore only 
misunderstand what we said
- the Raven   (George MacDonald, Lilith)



More information about the Therps-discuss mailing list