|
86 | 86 | {
|
87 | 87 | "source": [
|
88 | 88 | "### Dynamic Url Creation\n",
|
89 |
| - "The Url genration method allows the user to create a url in which url can be chnaged to allow on the spot modification. The parameters passed from the query must meet the requirements as indicated in url for the operation to run.\n", |
| 89 | + "The Url genration method allows the user to create a url in which url can be changed to allow on the spot modification. The parameters passed from the query must meet the requirements as indicated in url for the operation to run.\n", |
90 | 90 | "\n",
|
91 | 91 | "For Example:\n",
|
92 | 92 | "\n",
|
93 |
| - "http://api.covidtracking.com/v2/states/{state}/daily.json to http://api.covidtracking.com/v2/states/ny/daily.json \n", |
| 93 | + "We have the following url, here you can see that, we have the ability to modify the url with any state we want.\n", |
| 94 | + "http://api.covidtracking.com/v2/states/{state}/current.json \n", |
94 | 95 | "\n",
|
95 |
| - "where the state parameter is replaced by ny (Abbr. New York)\n", |
| 96 | + "Lets suppose we want to retrieve data for New York. We would just inter-exchange the {state} variable with ny (Abbr. for New York)\n", |
| 97 | + "http://api.covidtracking.com/v2/states/ny/current.json\n", |
96 | 98 | "\n",
|
97 |
| - "Now, let's try to get Historical COVID-19 data for a state in US from Covid Data API." |
| 99 | + "Now seeing this you may be asking where do we pass the data we want to replace. This can be achived from by pacing the data as a parameter in the query function.\n", |
| 100 | + "\n", |
| 101 | + "Example:\n", |
| 102 | + "\n", |
| 103 | + "await dc.query(\"states\",state = \"ny\")\n", |
| 104 | + "\n", |
| 105 | + "Now, let's try to get Current COVID-19 data for a state in US from Covid Data API." |
98 | 106 | ],
|
99 | 107 | "cell_type": "markdown",
|
100 | 108 | "metadata": {}
|
101 | 109 | },
|
| 110 | + { |
| 111 | + "source": [], |
| 112 | + "cell_type": "markdown", |
| 113 | + "metadata": {} |
| 114 | + }, |
102 | 115 | {
|
103 | 116 | "cell_type": "markdown",
|
104 | 117 | "metadata": {},
|
|
122 | 135 | "metadata": {},
|
123 | 136 | "source": [
|
124 | 137 | "# That's all for now. \n",
|
125 |
| - "If you are interested in writing your own configuration file or modify an existing one, refer to the [Example folder](https://github.com/sfu-db/DataConnectorConfigs>). Change the link" |
| 138 | + "If you are interested in writing your own configuration file or modify an existing one, refer to the [Example folder](<https://github.com/sfu-db/APIConnectors/tree/examples/examples>)." |
126 | 139 | ]
|
127 | 140 | }
|
128 | 141 | ],
|
|
0 commit comments