Apple News API PHP Client

Meta
in package

FinalYes

Meta object wrapping throttling information from Create/Update Article responses.

The Meta object is returned as part of Create Article and Update Article responses and contains information about rate limiting and request quotas.

Tags
see
https://developer.apple.com/documentation/applenewsapi/meta

Table of Contents

Properties

$throttling  : Throttling|null

Methods

__construct()  : mixed
Create a new Meta instance.
fromArray()  : self
Create a Meta instance from API response data.

Properties

Methods

__construct()

Create a new Meta instance.

public __construct([Throttling|null $throttling = null ]) : mixed
Parameters
$throttling : Throttling|null = null

Throttling information for rate limit management.

fromArray()

Create a Meta instance from API response data.

public static fromArray(array<string, mixed> $data) : self
Parameters
$data : array<string, mixed>

The meta data from the API response.

Return values
self

A new Meta instance populated with the response data.


        
On this page

Search results