Skip to content

Commit 911e1c1

Browse files
authored
Update all hyperlinks to the new documentation (#44)
1 parent 1fa0496 commit 911e1c1

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
The TruckersMP PHP library provides convenient access to the TruckersMP API for applications written in the PHP
1515
language. It includes a pre-defined set of classes for each API endpoint to get the data as a collection or model.
1616

17-
If you want to use the API without the library, check out the [API Documentation](https://stats.truckersmp.com/api).
17+
If you want to use the API without the library, check out the [API Documentation](https://truckersmp.com/developers/api).
1818

1919
## Requirements
2020

src/Client.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function __construct(array $config = [])
3636
/**
3737
* Get the information for the player with the specified ID.
3838
*
39-
* https://stats.truckersmp.com/api#players_lookup
39+
* https://truckersmp.com/developers/api#operation/get-player-id
4040
*
4141
* @param int $id
4242
* @return PlayerRequest
@@ -49,7 +49,7 @@ public function player(int $id): PlayerRequest
4949
/**
5050
* Get the bans for the player with the specified ID.
5151
*
52-
* https://stats.truckersmp.com/api#ban_lookup
52+
* https://truckersmp.com/developers/api#operation/get-bans-id
5353
*
5454
* @param int $id
5555
* @return BanRequest
@@ -62,7 +62,7 @@ public function bans(int $id): BanRequest
6262
/**
6363
* Get the information about the servers.
6464
*
65-
* https://stats.truckersmp.com/api#servers_list
65+
* https://truckersmp.com/developers/api#operation/get-servers
6666
*
6767
* @return ServerRequest
6868
*/
@@ -74,7 +74,7 @@ public function servers(): ServerRequest
7474
/**
7575
* Get the current game time.
7676
*
77-
* https://stats.truckersmp.com/api#game_time
77+
* https://truckersmp.com/developers/api#operation/get-game_time
7878
*
7979
* @return GameTimeRequest
8080
*/
@@ -86,7 +86,7 @@ public function gameTime(): GameTimeRequest
8686
/**
8787
* Get the recent and featured companies.
8888
*
89-
* https://stats.truckersmp.com/api#vtc_index
89+
* https://truckersmp.com/developers/api#operation/get-vtc
9090
*
9191
* @return CompanyIndexRequest
9292
*/
@@ -98,7 +98,7 @@ public function companies(): CompanyIndexRequest
9898
/**
9999
* Get the information for the company with the specified ID or slug.
100100
*
101-
* https://stats.truckersmp.com/api#vtc_info
101+
* https://truckersmp.com/developers/api#operation/get-vtc-id
102102
*
103103
* @param string|int $key
104104
* @return CompanyRequest
@@ -111,7 +111,7 @@ public function company(string $key): CompanyRequest
111111
/**
112112
* Get the TruckersMP version for ETS2 and ATS.
113113
*
114-
* https://stats.truckersmp.com/api#truckersmp_version
114+
* https://truckersmp.com/developers/api#operation/get-version
115115
*
116116
* @return VersionRequest
117117
*/
@@ -123,7 +123,7 @@ public function version(): VersionRequest
123123
/**
124124
* Get the current in-game rules.
125125
*
126-
* https://stats.truckersmp.com/api#truckersmp_rules
126+
* https://truckersmp.com/developers/api#operation/get-rules
127127
*
128128
* @return RuleRequest
129129
*/
@@ -133,9 +133,9 @@ public function rules(): RuleRequest
133133
}
134134

135135
/**
136-
* Get the featured, today's and upcoming events.
136+
* Get the featured, current, and upcoming events.
137137
*
138-
* https://stats.truckersmp.com/api#events_index
138+
* https://truckersmp.com/developers/api#operation/get-v2-events
139139
*
140140
* @return EventIndexRequest
141141
*/
@@ -147,7 +147,7 @@ public function events(): EventIndexRequest
147147
/**
148148
* Get the information for the event with the specified ID.
149149
*
150-
* https://stats.truckersmp.com/api#events_info
150+
* https://truckersmp.com/developers/api#operation/get-events-id
151151
*
152152
* @param int $id
153153
* @return EventRequest

0 commit comments

Comments
 (0)