diff --git a/README.md b/README.md index 340c501..2032f88 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ Free for Non-Commercial Use. Using composer, simply add it to the "require" section of your composer.json: "require": { - "mysportsfeeds\mysportsfeeds-php": ">=0.1.0" + "mysportsfeeds\mysportsfeeds-php": ">=1.0.0" } If you haven't signed up for API access, do so here [https://www.mysportsfeeds.com/index.php/register/](https://www.mysportsfeeds.com/index.php/register/) @@ -22,9 +22,9 @@ Create main MySportsFeeds object with API version as input parameter use MySportsFeeds\MySportsFeeds; - $msf = new MySportsFeeds("1.0"); + $msf = new MySportsFeeds("1.2"); -Authenticate (v1.0 uses your MySportsFeeds account credentials) +Authenticate (v1.x uses your MySportsFeeds account credentials) $msf->authenticate("YOUR_USERNAME", "YOUR_PASSWORD"); diff --git a/example.php b/example.php index 45c7083..0260595 100644 --- a/example.php +++ b/example.php @@ -4,7 +4,7 @@ use MySportsFeeds\MySportsFeeds; -$data_query = new MySportsFeeds('1.0', true); +$data_query = new MySportsFeeds('1.2', true); $data_query->authenticate('YOUR_USERNAME', 'YOUR_PASSWORD'); $data = $data_query->getData( 'nba', // league diff --git a/src/API_v1_0.php b/src/API_v1_0.php index ad6d3e4..33e195e 100644 --- a/src/API_v1_0.php +++ b/src/API_v1_0.php @@ -5,6 +5,6 @@ class API_v1_0 extends BaseApi { protected function getBaseUrlForVersion($version) { - return "https://www.mysportsfeeds.com/api/feed/pull"; + return "https://api.mysportsfeeds.com/v1.0/pull"; } } diff --git a/src/API_v1_1.php b/src/API_v1_1.php new file mode 100644 index 0000000..ed4ddc3 --- /dev/null +++ b/src/API_v1_1.php @@ -0,0 +1,10 @@ +__verifyStore($storeType, $storeLocation);