Base URL | http://gleague.nba.com/wp-json/api/v1/assignments.json |
---|---|
Default Response Format | JSON |
Domain | GLeague |
Section | Api |
Category | Team |
Request Class | JasonRoman\NbaApi\Request\GLeague\Api\Team\TeamAssignmentsRequest |
<?php
require_once 'vendor/autoload.php'; // skip this if using a framework / autoloading elsewhere
use JasonRoman\NbaApi\Client\Client;
use JasonRoman\NbaApi\Request\GLeague\Api\Team\TeamAssignmentsRequest;
$client = new Client();
$request = TeamAssignmentsRequest::fromArrayWithExamples();
$response = $client->request($request);
<?php
require_once 'vendor/autoload.php'; // skip this if using a framework / autoloading elsewhere
use JasonRoman\NbaApi\Client\Client;
use JasonRoman\NbaApi\Request\GLeague\Api\Team\TeamAssignmentsRequest;
$client = new Client();
$request = TeamAssignmentsRequest::fromArray([
'subdomainTeamSlug' => 'grandrapids',
'season' => '2024-25',
'teamId' => 1610612745,
'recalled' => null,
]);
$response = $client->request($request);
Click the icon to copy the URL to your clipboard, or click the link below to open the raw result in a new window.
Click the button to return the result as a PHP array and PHP object.
Required? | Yes |
---|---|
Type | string |
Choices: | aguacaliente austin canton delaware erie fortwayne greensboro grandrapids iowa lakeland longisland maine memphis northernarizona oklahomacity raptors905 reno riograndevalley saltlakecity santacruz siouxfalls southbay texas westchester windycity wisconsin |
Description/Notes: | This does not appear to have any effect, even if changing the value. |
---|---|
Required? | No |
Type | string |
Default Value | 2024-25 |
Regex Format: | /^\d{4}-\d{2}$/ |
Description/Notes: | Even though using the subdomain slug, this is still required and must be the id that matches the subdomain slug. |
---|---|
Required? | No |
Type | int |
Range: |
Min: 1
Max: 2147483647 |
Required? | No |
---|---|
Type | bool |
Change any of the filterable values here and submit the form to get results with your chosen filters. This will also give you the corresponding URL as well as the code used to generate the result.