Skip to content

Commit 6d42ab4

Browse files
authored
Merge pull request #167 from maxmind/kevin/update-dev-links
Update dev.maxmind.com links
2 parents 8bb18d4 + 67476e7 commit 6d42ab4

File tree

6 files changed

+30
-32
lines changed

6 files changed

+30
-32
lines changed

README.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@
22

33
## Description ##
44

5-
This package provides an API for the GeoIP2
6-
[web services](https://dev.maxmind.com/geoip/geoip2/web-services) and
7-
[databases](https://dev.maxmind.com/geoip/geoip2/downloadable). The API also
8-
works with the free
9-
[GeoLite2 databases](https://dev.maxmind.com/geoip/geoip2/geolite2/).
5+
This package provides an API for the GeoIP2 and GeoLite2
6+
[web services](https://dev.maxmind.com/geoip/docs/web-services?lang=en) and
7+
[databases](https://dev.maxmind.com/geoip/docs/databases?lang=en).
108

119
## Install via Composer ##
1210

@@ -357,7 +355,7 @@ Because of these factors, it is possible for any end point to return a record
357355
where some or all of the attributes are unpopulated.
358356

359357
See the
360-
[GeoIP2 Precision web service docs](https://dev.maxmind.com/geoip/geoip2/web-services)
358+
[GeoIP2 Precision web service docs](https://dev.maxmind.com/geoip/docs/web-services?lang=en)
361359
for details on what data each end point may return.
362360

363361
The only piece of data which is always returned is the `ipAddress`

src/Model/City.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*
1010
* The only difference between the City and Insights model classes is which
1111
* fields in each record may be populated. See
12-
* https://dev.maxmind.com/geoip/geoip2/web-services for more details.
12+
* https://dev.maxmind.com/geoip/docs/web-services?lang=en for more details.
1313
*
1414
* @property-read \GeoIp2\Record\City $city City data for the requested IP
1515
* address.

src/Model/Country.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*
1010
* The only difference between the City and Insights model classes is which
1111
* fields in each record may be populated. See
12-
* https://dev.maxmind.com/geoip/geoip2/web-services for more details.
12+
* https://dev.maxmind.com/geoip/docs/web-services?lang=en for more details.
1313
*
1414
* @property-read \GeoIp2\Record\Continent $continent Continent data for the
1515
* requested IP address.

src/Model/Enterprise.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*
1010
* The only difference between the City and Enterprise model classes is which
1111
* fields in each record may be populated. See
12-
* https://dev.maxmind.com/geoip/geoip2/web-services for more details.
12+
* https://dev.maxmind.com/geoip/docs/web-services?lang=en for more details.
1313
*/
1414
class Enterprise extends City
1515
{

src/Model/Insights.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*
1010
* The only difference between the City and Insights model classes is which
1111
* fields in each record may be populated. See
12-
* https://dev.maxmind.com/geoip/geoip2/web-services for more details.
12+
* https://dev.maxmind.com/geoip/docs/web-services?lang=en for more details.
1313
*/
1414
class Insights extends City
1515
{

src/WebService/Client.php

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -125,13 +125,13 @@ private function userAgent(): string
125125
* @throws \GeoIp2\Exception\InvalidRequestException} if your request was received by the web service but is
126126
* invalid for some other reason. This may indicate an issue
127127
* with this API. Please report the error to MaxMind.
128-
* @throws \GeoIp2\Exception\HttpException if an unexpected HTTP error code or message was returned.
129-
* This could indicate a problem with the connection between
130-
* your server and the web service or that the web service
131-
* returned an invalid document or 500 error code
132-
* @throws \GeoIp2\Exception\GeoIp2Exception This serves as the parent
133-
* class to the above exceptions. It will be thrown directly
134-
* if a 200 status code is returned but the body is invalid.
128+
* @throws \GeoIp2\Exception\HttpException if an unexpected HTTP error code or message was returned.
129+
* This could indicate a problem with the connection between
130+
* your server and the web service or that the web service
131+
* returned an invalid document or 500 error code
132+
* @throws \GeoIp2\Exception\GeoIp2Exception This serves as the parent
133+
* class to the above exceptions. It will be thrown directly
134+
* if a 200 status code is returned but the body is invalid.
135135
*/
136136
public function city(string $ipAddress = 'me'): City
137137
{
@@ -154,14 +154,14 @@ public function city(string $ipAddress = 'me'): City
154154
* @throws \GeoIp2\Exception\InvalidRequestException} if your request was received by the web service but is
155155
* invalid for some other reason. This may indicate an
156156
* issue with this API. Please report the error to MaxMind.
157-
* @throws \GeoIp2\Exception\HttpException if an unexpected HTTP error
158-
* code or message was returned. This could indicate a problem
159-
* with the connection between your server and the web service
160-
* or that the web service returned an invalid document or 500
161-
* error code.
162-
* @throws \GeoIp2\Exception\GeoIp2Exception This serves as the parent class to the above exceptions. It
163-
* will be thrown directly if a 200 status code is returned but
164-
* the body is invalid.
157+
* @throws \GeoIp2\Exception\HttpException if an unexpected HTTP error
158+
* code or message was returned. This could indicate a problem
159+
* with the connection between your server and the web service
160+
* or that the web service returned an invalid document or 500
161+
* error code.
162+
* @throws \GeoIp2\Exception\GeoIp2Exception This serves as the parent class to the above exceptions. It
163+
* will be thrown directly if a 200 status code is returned but
164+
* the body is invalid.
165165
*/
166166
public function country(string $ipAddress = 'me'): Country
167167
{
@@ -185,13 +185,13 @@ public function country(string $ipAddress = 'me'): Country
185185
* @throws \GeoIp2\Exception\InvalidRequestException} if your request was received by the web service but is
186186
* invalid for some other reason. This may indicate an
187187
* issue with this API. Please report the error to MaxMind.
188-
* @throws \GeoIp2\Exception\HttpException if an unexpected HTTP error code or message was returned.
189-
* This could indicate a problem with the connection between
190-
* your server and the web service or that the web service
191-
* returned an invalid document or 500 error code
192-
* @throws \GeoIp2\Exception\GeoIp2Exception This serves as the parent
193-
* class to the above exceptions. It will be thrown directly
194-
* if a 200 status code is returned but the body is invalid.
188+
* @throws \GeoIp2\Exception\HttpException if an unexpected HTTP error code or message was returned.
189+
* This could indicate a problem with the connection between
190+
* your server and the web service or that the web service
191+
* returned an invalid document or 500 error code
192+
* @throws \GeoIp2\Exception\GeoIp2Exception This serves as the parent
193+
* class to the above exceptions. It will be thrown directly
194+
* if a 200 status code is returned but the body is invalid.
195195
*/
196196
public function insights(string $ipAddress = 'me'): Insights
197197
{

0 commit comments

Comments
 (0)