Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
akashrchandran authored May 7, 2023
1 parent c3f961a commit 54e9957
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ A Rest API for fetching lyrics from Spotify which is powered by Musixmatch. Comm
```
composer require akashrchandran/spotify-lyrics-api
```

# Fetching Lyrics


Expand Down Expand Up @@ -178,6 +177,25 @@ error response:
}
```

# Using as package
> Install using `composer require akashrchandran/spotify-lyrics-api`.
Include the package's autoloader file in your PHP code and call class `Spotify()`.

```PHP
<?php
require('./vendor/autoload.php');

$spotify = new SpotifyLyricsApi\Spotify("SP_DC here");
$spotify->checkTokenExpire();
$reponse = $spotify -> getLyrics(track_id: "1418IuVKQPTYqt7QNJ9RXN");
?>
```


![image](https://user-images.githubusercontent.com/78685510/236701387-23165a0e-1c94-474d-aea1-41d8b8464f66.png)


# Deployment

> Want to host your own version of this API, But first you need SP_DC cookie from spotify
Expand Down

0 comments on commit 54e9957

Please sign in to comment.