Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/toddbirchard/ghost-member-session
- Owner: toddbirchard
- License: mit
- Created: 2020-07-18T00:11:46.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-10-20T06:14:48.000Z (over 3 years ago)
- Last Synced: 2024-11-16T01:44:06.725Z (2 months ago)
- Topics: ghost, ghost-cms, go, golang, lambda, lambda-functions, membership, netlify, serverless
- Language: Go
- Homepage:
- Size: 9.52 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
}
```