Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Spotify Web Api Php Laravel Package

jwilsson/spotify-web-api-php

View on GitHub
Deep Wiki
Context7

Request

Table of Contents

Constants

  • ACCOUNT_URL
  • API_URL

Methods

__construct

Request::__construct($options)

Constructor Set options.

Arguments

* `$options` **array\|object** - Optional. Options to set.

account

Request::account($method, $uri, $parameters, $headers)

Make a request to the "account" endpoint.

Arguments

* `$method` **string** - The HTTP method to use.
* `$uri` **string** - The URI to request.
* `$parameters` **string\|array** - Optional. Query string parameters or HTTP body, depending on $method.
* `$headers` **array** - Optional. HTTP headers.

Return values

  • array Response data.
  • array|object body The response body. Type is controlled by the return_assoc option.
  • array headers Response headers.
  • int status HTTP status code.
  • string url The requested URL.

api

Request::api($method, $uri, $parameters, $headers)

Make a request to the "api" endpoint.

Arguments

* `$method` **string** - The HTTP method to use.
* `$uri` **string** - The URI to request.
* `$parameters` **string\|array** - Optional. Query string parameters or HTTP body, depending on $method.
* `$headers` **array** - Optional. HTTP headers.

Return values

  • array Response data.
  • array|object body The response body. Type is controlled by the return_assoc option.
  • array headers Response headers.
  • int status HTTP status code.
  • string url The requested URL.

getLastResponse

Request::getLastResponse()

Get the latest full response from the Spotify API.

Return values

  • array Response data.
  • array|object body The response body. Type is controlled by the return_assoc option.
  • array headers Response headers.
  • int status HTTP status code.
  • string url The requested URL.

send

Request::send($method, $url, $parameters, $headers)

Make a request to Spotify. You'll probably want to use one of the convenience methods instead.

Arguments

* `$method` **string** - The HTTP method to use.
* `$url` **string** - The URL to request.
* `$parameters` **string\|array\|object** - Optional. Query string parameters or HTTP body, depending on $method.
* `$headers` **array** - Optional. HTTP headers.

Return values

  • array Response data.
  • array|object body The response body. Type is controlled by the return_assoc option.
  • array headers Response headers.
  • int status HTTP status code.
  • string url The requested URL.

setOptions

Request::setOptions($options)

Set options

Arguments

* `$options` **array\|object** - Options to set.

Return values

  • self

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
andydefer/laravel-cluster
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky
spatie/mailcoach-vapor
spatie/laravel-javascript-views