How hard could it be to talk to another website and get some information? Actually fairly hard and at least for me slightly complicated :-) My friend Peter who's site I'm making wants to be able to upload photos of recent work he's done right from his phone, while he's out working.
I have failed on that front, I tried using a Facebook embedded link but you still have to log in and make a badge for each photo, and the badge looks really ugly up on the site. I tried Flickr, but again you have to make a little Flickr image and paste the code into the views file.
Instagram looked promising and I registered the Landscaping site with their API, but I am sadly lost on all the functions and features of the API. So I've decided to use the 'Devise' and 'Carrierwave' gems, so that Peter can log in and upload any image from his computer fairly easily.
That's not uploading from his phone but he will at least have the functionality to upload new images on his own. As I get better at this whole Ruby on Rails thing, I'll go back in and probably use Instagram to upload his photos.
On the positive front, I am so impressed with how easy 'Devise' makes authorization, I have used it a little on another project, but I really didn't "get it" but now I really appreciate a lot more of the magic that it does.
I spent 4 hours studying/learning today with not a lot of website progress to show for it, but I did get my feet wet learning a little about how APIs work, I really want to understand how to use APIs more, and not just the main ones like Facebook, Twitter, and stuff.
A shout out of thanks to +Isaac Cambron for helping me and giving me tips to understand APIs better, the man's a genius, check out some of his stuff: http://drunkencoder.net/.
I just want to say, how impressed I've been by the whole coding community and especially the Ruby on Rails crowd, I haven't recieved anything but support and kindness from the very start of learning to code and for that I am very grateful.
Okay back to my sad website :-) Josh
Wednesday, April 17, 2013
Learning Ruby on Rails Day 176 = APIs
Follow Me
POPULAR POSTS
-
UPDATE September 2016: We are now inundated with bootcamps and it's getting harder to land a junior developer position. I created a co...
-
Yes, obviously Free Code Camp is popular. It's supposed to make things easier for you to learn how to code. My problem is the length of...
-
I have always promised honesty and transparency with this blog. Last time I gave a review about Free Code Camp, I wasn't super supporti...
-
You need a Regular Expression to validate a phone number or a user's email address, so what do you do? Go onto StackOverflow and copy so...
-
What up peeps ! I feel like every day gets better and better, I just gotta' say life is good, No brag, just fact :-) I thought I woul...
BLOG ARCHIVES
-
▼
2013
(115)
-
▼
April
(14)
- Week 27 = 560 hours 25 minutes of learning Ruby on...
- Learning Ruby on Rails Day: 185
- Officially 6 months learning Ruby on Rails = 537.5...
- End of week 26 = 532 hours!!!
- CODING: Confessions of an Unlikely Developer
- Learning Ruby on Rails @ 520.5 hours: 1% better
- Learning Ruby on Rails Day 176 = APIs
- Learning Ruby on Rails Day: 175
- Week 25 = 503.5 hours of learning Ruby on Rails!!!
- Learning Ruby on Rails Day 169: Stay the Course!
- Learning Ruby on Rails end of week 24 = Total hour...
- Learning Ruby on Rails Day: 165
- Ruby on Rails Learning Journey Day: 163
- End of Week 23 = 463 hours of learning Ruby on Rails!
-
▼
April
(14)