Coder Social home page Coder Social logo

apis-and-json-exercise's Introduction

Exercise1:

Let’s create a console application that calls both the Ron Swanson API, and the Kanye West API. Using both APIs, make Ron Swanson and Kanye West have a conversation that prints to the console.

Hints: Use a for loop to generate at least 5 quotes from each api and have them alternate to simulate a conversation

Here is some code to utilize for parsing the ron swanson response:

var ronQuote = JArray.Parse(ronResponse).ToString().Replace('[', ' ').Replace(']', ' ').Trim();

Here are the API urls:

https://ron-swanson-quotes.herokuapp.com/v2/quotes

https://api.kanye.rest

FINISHED Project: https://github.com/mvdoyle/KanyeAndRonSwanson

Exercise 2:

Use the OpenWeatherMap API to find out what the current weather forecast is!

Create an OpenWeatherMap account to get a free API Key

Add the NewtonSoft.Json Nuget Package to your Console App

Figure out how to get the CURRENT weather for the City you specify in degrees fahrenheit

Use this site for extra help: https://openweathermap.org/current

Creatively display & organize the response

Hint: For more info on Units of Measurement visit: https://openweathermap.org/current#data

apis-and-json-exercise's People

Contributors

schwenk-a avatar amoriss avatar mvdoyle avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.