Creates a new agency, linked to its source (e.g. casagest24).
{
"agency_id": "1",
"source": "casagest24" | "peracquisire" | "casacheck24"
}curl -X POST http://localhost:3000/api/agency/signup/ -H "Content-Type: application/json" -H "Authorization: Bearer 1n513m3" -d '{
"agency_id": "5",
"name": "La Vera Agenzia",
"email": "marco@gruppoinsieme.it",
"source": "casagest24"
}'This will create a record in the `users` table
Request a valid JWT token that can be used for subsequent client-side requests.
curl -X POST http://localhost:3000/verify -H "Content-Type: application/json" -H "Authorization: Bearer 1n513m3" -d '{
"userId": "1"
}'Redirects the user to the Facebook authorization page to connect their Facebook account.
curl -X GET -H "Authorization: Bearer your-JWT-here" http://localhost:3000/fb/auth/connectThis will create a record in the `connections` table
Use the token (see #3) saved in the `connections` table to find the eligible social media accounts for this user
curl -X POST -H "Authorization: Bearer your-JWT-here" http://localhost:3000/fb/connect/profileThis will create a record in the `accounts` table
curl -X POST -H "Authorization: Bearer your-JWT-here" http://localhost:3000/user/accountsThis will create a record in the `accounts` table
Retrieve all posts associated with the user's account.
curl -X GET -H "Authorization: Bearer your-JWT-here" http://localhost:3000/user/postsThis will return all posts associated with the authenticated user.