We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a722647 commit 9d443f4Copy full SHA for 9d443f4
lib/Client/ModrinthAPIClient.php
@@ -227,6 +227,18 @@ public function getProjectDependencies(string $idOrSlug): ProjectDependencies
227
return new ProjectDependencies($this, $this->projects->getDependencies($idOrSlug));
228
}
229
230
+ /**
231
+ * Get a project's version by ID or number
232
+ * @param string $idOrSlug
233
+ * @param string $version
234
+ * @return Version
235
+ * @throws ApiException
236
+ */
237
+ public function getProjectVersionFromIdOrNumber(string $idOrSlug, string $version): Version
238
+ {
239
+ return new Version($this, $this->versions->getVersionFromIdOrNumber($idOrSlug, $version));
240
+ }
241
+
242
/**
243
* Get all versions of a project
244
* @param string $idOrSlug Project ID or slug
0 commit comments