Skip to content

Web-Advanced-Spring-2017/assignment-02-sunnythedude

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Assignment 02

Assignment Description

  • I used the Twitter, Instagram & Google Maps API'S.
  • I used the Google Maps API to display some New School locations I frequent on a map along with a pop up label that appears when you click on the marker.
  • I used the twitter API to do two things. Firstly to send out a tweet (one of a possible six within an array) every 20 seconds on my Twitter Feed and secondly to send out a bot generated reply everytime someone follows me on twitter.
  • I used the Instagram API to grab the images from my instagram and post them onto an HTML page.

Twitter API

I used the Twitter API to perform 2 tasks:

  1. To send out one of six possible tweets every 20 seconds.

We run the node server Alt text

The Array with the selection of tweets, Math.random is used to randomize the order Alt text

The Result Alt text

  1. To send out a pre-generated message anytime my account was followed.

First we run the node server Alt text

Which runs the follow function Alt text

Resulting in the bot reply upon recieving a new follower



Google Maps API

  • I used the google maps API to generate a map with multiple markers.
  • All locations are Newschool owned places that I frequent.
  • I used geographical coordinates to accurately pinpoint the locations using http://www.latlong.net/.

The Locations are defined in the locations array along with the coordinates Alt text

The Result: Alt text

The Infowindow is a label that appears when the marker is clicked. There's actually no discernible word limit but I chose to just add the Laocation name associated with the marker
Alt text

Instagram API

I used the Instagram API to grab the images uploaded to my instagram account and then using jQuery append them to an unordered list in list form.

Alt text

Resources

Daniel Shiffman - Node.js and Twitter API tutorial [https://www.youtube.com/watch?v=RF5_MPSNAtU&list=PLRqwX-V7Uu6atTSxoRiVnSuOn6JHnq2yV]

About

assignment-02-sunnythedude created by GitHub Classroom

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors