Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/toddbirchard/ghost-member-session

👻 🟩 Verifies whether the current user is a Ghost member and returns general account information upon success.
https://github.com/toddbirchard/ghost-member-session

ghost ghost-cms go golang lambda lambda-functions membership netlify serverless

Last synced: 4 days ago
JSON representation

👻 🟩 Verifies whether the current user is a Ghost member and returns general account information upon success.

Awesome Lists containing this project

README

        

# Ghost Member Lambda

![Go](https://img.shields.io/badge/Go-1.14-blue.svg?logo=go&longCache=true&logoColor=white&colorB=88C0D0&style=flat-square&colorA=4c566a)
![GitHub Last Commit](https://img.shields.io/github/last-commit/google/skia.svg?style=flat-square&colorA=4c566a&colorB=a3be8c)
[![GitHub Issues](https://img.shields.io/github/issues/toddbirchard/ghost-member-lambda.svg?style=flat-square&colorA=4c566a&colorB=ebcb8b)](https://github.com/toddbirchard/ghost-member-lambda/issues)
[![GitHub Stars](https://img.shields.io/github/stars/toddbirchard/ghost-member-lambda.svg?style=flat-square&colorB=ebcb8b&colorA=4c566a)](https://github.com/toddbirchard/ghost-member-lambda/stargazers)
[![GitHub Forks](https://img.shields.io/github/forks/toddbirchard/ghost-member-lambda.svg?style=flat-square&colorA=4c566a&colorB=ebcb8b)](https://github.com/toddbirchard/ghost-member-lambda/network)

Check the active user session belongs to a registered Ghost member. Returns member account information upon success.

### Example Usage

**Request:**
```bash
$ curl https://hackersandslackers.app/.netlify/functions/ghost-member-lambda
```

**Response:**
```json
{
"uuid": "df0c49c7-8e71-4e8f-9ab5-97082063c4cd",
"email": "[email protected]",
"name": null,
"firstname": null,
"avatar_image": "https://gravatar.com/avatar/5f2c7111462afaecd8bc5a79d21dfe7e?s=250&d=blank",
"subscribed": true,
"subscriptions": [],
"paid": false
}
```