File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 7
7
$ api_key = "YOUR_KEY_HERE " ;
8
8
$ symbol = "GOOG/NASDAQ_AAPL " ;
9
9
10
- // Modify this call to check different samples
10
+ // Modify this call to any `exampleN` to check different samples
11
11
$ data = example1 ($ api_key , $ symbol );
12
12
print_r ($ data );
13
13
@@ -65,8 +65,14 @@ function example7($api_key, $symbol) {
65
65
return $ quandl ->getList ("WIKI " , 1 , 10 );
66
66
}
67
67
68
- // Example 8: Error Handling
68
+ // Example 8: Meta Data
69
69
function example8 ($ api_key , $ symbol ) {
70
+ $ quandl = new Quandl ($ api_key );
71
+ return $ quandl ->getMeta ($ symbol );
72
+ }
73
+
74
+ // Example 9: Error Handling
75
+ function example9 ($ api_key , $ symbol ) {
70
76
$ quandl = new Quandl ($ api_key , "csv " );
71
77
$ result = $ quandl ->getSymbol ("DEBUG/INVALID " );
72
78
if ($ quandl ->error and !$ result )
You can’t perform that action at this time.
0 commit comments