Lecture 19: post and Public APIS

Slides:



Advertisements
Similar presentations
Lecture 6/2/12. Forms and PHP The PHP $_GET and $_POST variables are used to retrieve information from forms, like user input When dealing with HTML forms.
Advertisements

Forms Authority Database Store Username and Passwords: ASP.NET framework allows you to control access to pages, classes, or methods based on username and.
Copyright © The OWASP Foundation Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation.
Servlets and a little bit of Web Services Russell Beale.
Session Management A290/A590, Fall /25/2014.
Employee Self Service Portal Instructions
Get Started in 4 Easy Steps!
15. User Authentication, Form Validation, Paging. M. Udin Harun Al Rasyid, S.Kom, Ph.D
Web forms in PHP Forms Recap  Way of allowing user interaction  Allows users to input data that can then be processed by a program / stored in a back-end.
Session 11: Security with ASP.NET
VASP PREPAYMENT SYSTEM Training Module for CLIENTS.
Slide 1 of 19 Welcome to GSA’s Vendor and Customer Self Service (VCSS) course Section 7: Correspondence Navigation This presentation is compliant with.
Comp2513 Forms and CGI Server Applications Daniel L. Silver, Ph.D.
PHP Hypertext PreProcessor. Documentation Available SAMS books O’Reilly Books.
Student Registration for.
Creating a Web Site to Gather Data and Conduct Research.
Part 1 – PubMed Interface, Display options, Saving, Printing, and ing results. Instructions This part of the course is a PowerPoint demonstration.
Delta NYC Tracking and Custom Interaction Overview/Suggestions on a possible implementation strategy.
System Initialization 1)User starts application. 2)Client loads settings. 3)Client loads contact address book. 4)Client displays contact list. 5)Client.
Website Development with PHP and MySQL Saving Data.
1 © Netskills Quality Internet Training, University of Newcastle HTML Forms © Netskills, Quality Internet Training, University of Newcastle Netskills is.
HTML FORMS GET/POST METHODS. HTML FORMS HTML Forms HTML forms are used to pass data to a server. A form can contain input elements like text fields, checkboxes,
HTML Form and PHP IST Review of Previous Class HTML table and PHP array Winner is chosen randomly using rand() function.
Topics Sending an Multipart message Storing images Getting confirmation Session tracking using PHP Graphics Input Validators Cookies.
Go Animate Tutorial. Home Sign Up Click Sign Up.
INT222 - Internet Fundamentals Shi, Yue (Sunny) Office: T2095 SENECA COLLEGE.
1 State and Session Management HTTP is a stateless protocol – it has no memory of prior connections and cannot distinguish one request from another. The.
Meetingangels.com Service Buyer. Front Page 2created by ilancecustomization.com.
ASSIGNMENT 2 Salim Malakouti. Ticketing Website  User submits tickets  Admins answer tickets or take appropriate actions.
HTML FORM AND PHP IST 210: Organization of Data IST210 1.
Unit 4 Working with data. Form Element HTML forms are used to pass data to a server. A form can contain input elements like text fields, checkboxes, radio-buttons,
 Enter blogger.com in the search barblogger.com  Log-in through a valid Gmail account (or create a Gmail account if you don’t have one)  Then click.
A little PHP. Enter the simple HTML code seen below.
NextStep Registration
Introduction to Notes Sui for Students.
ICE Integrated Cloud Environment Cloud Scanning and Mobile Printing
Tonga Institute of Higher Education IT 141: Information Systems
GOLD is money the rest is credit
Project Management: Messages
CIIT-Human Computer Interaction-CSC456-Fall-2015-Mr
Citation format 1 The “Citation” display option is similar to the abstract display but has some extra information such as MeSH terms and substances listed.
Hosted Fax Self-Paced User Training
>> More on HTML Forms
LECTURE 6: Domain Modeling
MOCKUP, FLOW, AND API SERVICE
SSETS-EBD Student Instructional Guide
Single Sign On via GWeb Info System for Students
Inviting Applicants to Interviews/EVENTs
Web Programming– UFCFB Lecture 17
How to obtain a license activation key for InraPorc?
(PubMed) MY NCBI (Advanced Course: Module 2)
Unit 27 - Web Server Scripting
ICOTS Helpdesk Training
Granting support access for individuals to Bill to IDs
Granting support access for individuals to contracts
Welcome to FOCUS FOCUS website:
Flowserve Distributor Online Store & Portal
Tonga Institute of Higher Education IT 141: Information Systems
Web Systems Development (CSC-215)
Flowserve Distributor Online Store & Portal
(PubMed) MY NCBI (Advanced Course: Module 2)
Tonga Institute of Higher Education IT 141: Information Systems
First Class User Experience Journey
DMIS Tools Course Lesson 2 - DMIS Messenger
CSc 337 Lecture 1: post.
Journal of Mountain Science (JMS)
PHP Forms and Databases.
Registering an Account
CSc 337 Lecture 18: post.
Presentation transcript:

Lecture 19: post and Public APIS CSc 337 Lecture 19: post and Public APIS

File Turn In Client Write a page that allows the user to enter their name, email and select an assignment number from a dropdown menu. It should also include a text area where they can paste their code and a submit button. When the user clicks the submit button the information should be sent to the server as a POST request.

File Turn In Service Write a web service that accepts that data your client page posted. You service should save the code from the text area into a file named the student's name and section. The service should send a success message back to the client if it was successful and a failure message back if it was not. File saving information on the next slide.

Writing Files appending to a file: fs.appendFile(filename, filecontent, function(err) { if(err) { return console.log(err); } console.log("The file was saved!"); }); writing to a file: fs.writeFile(filename, filecontent, function(err) {

File Turn In Confirmation Have your page display a confirmation message stating whether the request was successful. This message should include the code the user submitted if the request came back successful.

Final Project Individual or in pairs Creative - can have whatever focus you choose Big picture requirements: Must involve server side and client side code A little big than a standard 337 project Deadlines: proposal (11/7), code (12/3) and presentation (12/4)

Topics we will cover Canvas (good for games and animations) Databases (a better way to store data than text files) Regular expressions (good for input validation) Cookies and sessions (good for auto filling out forms with what the user input last time and logins) You are also welcome to use other things you learn on your own.

Public APIs There are many publicly available APIs that you can make requests to on the web. One list: https://github.com/toddmotto/public-apis

Public API Authentication There are three common types of Public API Authentication: None API Key an extra parameter that you send as an extra parameter whenever you make a request OAuth redirect to have the user authenticate through API

Rate Limiting Some APIs restrict how often you can access them Why do they do this? What can you do if you need to access them more frequently than they allow?