User Tools

Site Tools


ios-labs-s14:intermediate-api

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

ios-labs-s14:intermediate-api [2014/02/23 22:12]
mbarboi created
ios-labs-s14:intermediate-api [2014/02/23 22:16] (current)
mbarboi
Line 12: Line 12:
   https://​www.google.com/​search?​q=hello&​rlz=1C1CHMO_enUS567US567&​oq=hello&​aqs=chrome..69i57j69i59j69i60j69i59l2j0.1151j0j9&​sourceid=chrome&​espv=210&​es_sm=93&​ie=UTF-8   https://​www.google.com/​search?​q=hello&​rlz=1C1CHMO_enUS567US567&​oq=hello&​aqs=chrome..69i57j69i59j69i60j69i59l2j0.1151j0j9&​sourceid=chrome&​espv=210&​es_sm=93&​ie=UTF-8
  
 +Note the question mark. Here is part of the string following the question mark:
  
-A key (or variable) is denoted by the text to the left of an equals sign, while its value sits on the right. The same URL chunk with whitespace:+  ...?​q=hello&​rlz=1C1CHMO_enUS567US567&​oq=hello&​aqs=chrome..69i57j69i60l2j69i59l2j69i60.554j0j8... 
 + 
 +A key (or variable) is denoted by the text to the left of an equals sign, while its value sits on the right. The same snippet ​with whitespace ​added:
  
 ?​q=hello&​ ?​q=hello&​
Line 19: Line 22:
 oq=hello&​ oq=hello&​
 aqs=chrome..69i57j69i60l2j69i59l2j69i60.554j0j8 aqs=chrome..69i57j69i60l2j69i59l2j69i60.554j0j8
 +
 +Keys: q, rlz, oq, aqs
 +Values: hello, 1C1CHMO_enUS567US567,​ hello, etc
 +
 +Ampersands are used to add on key/value pairs to the URL. 
 +
 +In order to use functionality like this, you must have explicit understanding of how the server processes values it receives, this is most easily accomplished by writing both the server and the app, but is more commonly done by ensuring the backend developer keeps an open line of communication with the frontend developer and **doesn'​t drastically change things.**
ios-labs-s14/intermediate-api.txt · Last modified: 2014/02/23 22:16 by mbarboi