Permalink
Browse files
Merge pull request #12 from REI-Systems/master
csv-to-api minor changes from REI Systems, props @cman81.
- Loading branch information...
Showing
with
3 additions
and
3 deletions.
-
+2
−2
README.md
-
+1
−1
index.php
|
@@ -26,7 +26,7 @@ Requirements |
|
|
Usage
|
|
|
-----
|
|
|
|
|
|
-1. Copy `class.csv-to-api.inc.php` and `index.php` to your web server.
|
|
|
+1. Copy `class.csv-to-api.php` and `index.php` to your web server.
|
|
|
2. Load a CSV file via the URL `index.php`, using the arguments below.
|
|
|
|
|
|
Arguments
|
|
@@ -44,7 +44,7 @@ Example Usage |
|
|
-------------
|
|
|
|
|
|
### Get CSV as JSONP (default behavior)
|
|
|
-http://example.gov/csv-to-api/?source=https://explore.data.gov/download/7tag-iwnu/CSV
|
|
|
+http://example.gov/csv-to-api/?source=https://explore.data.gov/download/7tag-iwnu/CSV&source_format=csv
|
|
|
|
|
|
### Get results as XML
|
|
|
|
|
|
|
@@ -6,7 +6,7 @@ |
|
|
# No Source file is given, just show documentation
|
|
|
if ( !isset( $_REQUEST['source'] ) ) {
|
|
|
echo "<PRE>";
|
|
|
- require "readme.md";
|
|
|
+ require "README.md";
|
|
|
die();
|
|
|
}
|
|
|
|
|
|
0 comments on commit
acd962f