mirror of
https://github.com/kevin-DL/m3o-go.git
synced 2026-01-22 14:55:16 +00:00
Commit from m3o/m3o action
This commit is contained in:
9
curl/user/create/createAnAccount.sh
Executable file
9
curl/user/create/createAnAccount.sh
Executable file
@@ -0,0 +1,9 @@
|
||||
curl "https://api.m3o.com/v1/user/Create" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $M3O_API_TOKEN" \
|
||||
-d '{
|
||||
"email": "joe@example.com",
|
||||
"id": "usrid-1",
|
||||
"password": "mySecretPass123",
|
||||
"username": "usrname-1"
|
||||
}'
|
||||
6
curl/user/delete/deleteUserAccount.sh
Executable file
6
curl/user/delete/deleteUserAccount.sh
Executable file
@@ -0,0 +1,6 @@
|
||||
curl "https://api.m3o.com/v1/user/Delete" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $M3O_API_TOKEN" \
|
||||
-d '{
|
||||
"id": "fdf34f34f34-f34f34-f43f43f34-f4f34f"
|
||||
}'
|
||||
7
curl/user/login/logAUserIn.sh
Executable file
7
curl/user/login/logAUserIn.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
curl "https://api.m3o.com/v1/user/Login" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $M3O_API_TOKEN" \
|
||||
-d '{
|
||||
"email": "joe@example.com",
|
||||
"password": "mySecretPass123"
|
||||
}'
|
||||
6
curl/user/logout/logAUserOut.sh
Executable file
6
curl/user/logout/logAUserOut.sh
Executable file
@@ -0,0 +1,6 @@
|
||||
curl "https://api.m3o.com/v1/user/Logout" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $M3O_API_TOKEN" \
|
||||
-d '{
|
||||
"sessionId": "sds34s34s34-s34s34-s43s43s34-s4s34s"
|
||||
}'
|
||||
6
curl/user/read/readAccountByEmail.sh
Executable file
6
curl/user/read/readAccountByEmail.sh
Executable file
@@ -0,0 +1,6 @@
|
||||
curl "https://api.m3o.com/v1/user/Read" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $M3O_API_TOKEN" \
|
||||
-d '{
|
||||
"email": "joe@example.com"
|
||||
}'
|
||||
6
curl/user/read/readAccountByUsernameOrEmail.sh
Executable file
6
curl/user/read/readAccountByUsernameOrEmail.sh
Executable file
@@ -0,0 +1,6 @@
|
||||
curl "https://api.m3o.com/v1/user/Read" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $M3O_API_TOKEN" \
|
||||
-d '{
|
||||
"username": "usrname-1"
|
||||
}'
|
||||
6
curl/user/read/readAnAccountById.sh
Executable file
6
curl/user/read/readAnAccountById.sh
Executable file
@@ -0,0 +1,6 @@
|
||||
curl "https://api.m3o.com/v1/user/Read" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $M3O_API_TOKEN" \
|
||||
-d '{
|
||||
"id": "usrid-1"
|
||||
}'
|
||||
6
curl/user/readSession/readASessionByTheSessionId.sh
Executable file
6
curl/user/readSession/readASessionByTheSessionId.sh
Executable file
@@ -0,0 +1,6 @@
|
||||
curl "https://api.m3o.com/v1/user/ReadSession" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $M3O_API_TOKEN" \
|
||||
-d '{
|
||||
"sessionId": "sds34s34s34-s34s34-s43s43s34-s4s34s"
|
||||
}'
|
||||
11
curl/user/sendVerificationEmail/sendVerificationEmail.sh
Executable file
11
curl/user/sendVerificationEmail/sendVerificationEmail.sh
Executable file
@@ -0,0 +1,11 @@
|
||||
curl "https://api.m3o.com/v1/user/SendVerificationEmail" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $M3O_API_TOKEN" \
|
||||
-d '{
|
||||
"email": "joe@example.com",
|
||||
"failureRedirectUrl": "https://m3o.com/verification-failed",
|
||||
"fromName": "Awesome Dot Com",
|
||||
"redirectUrl": "https://m3o.com",
|
||||
"subject": "Email verification",
|
||||
"textContent": "Hi there,\n\nPlease verify your email by clicking this link: $micro_verification_link"
|
||||
}'
|
||||
7
curl/user/update/updateAnAccount.sh
Executable file
7
curl/user/update/updateAnAccount.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
curl "https://api.m3o.com/v1/user/Update" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $M3O_API_TOKEN" \
|
||||
-d '{
|
||||
"email": "joeotheremail@example.com",
|
||||
"id": "usrid-1"
|
||||
}'
|
||||
9
curl/user/updatePassword/updateTheAccountPassword.sh
Executable file
9
curl/user/updatePassword/updateTheAccountPassword.sh
Executable file
@@ -0,0 +1,9 @@
|
||||
curl "https://api.m3o.com/v1/user/UpdatePassword" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $M3O_API_TOKEN" \
|
||||
-d '{
|
||||
"confirmPassword": "myEvenMoreSecretPass123",
|
||||
"id": "usrid-1",
|
||||
"newPassword": "myEvenMoreSecretPass123",
|
||||
"oldPassword": "mySecretPass123"
|
||||
}'
|
||||
6
curl/user/verifyEmail/verifyEmail.sh
Executable file
6
curl/user/verifyEmail/verifyEmail.sh
Executable file
@@ -0,0 +1,6 @@
|
||||
curl "https://api.m3o.com/v1/user/VerifyEmail" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $M3O_API_TOKEN" \
|
||||
-d '{
|
||||
"token": "t2323t232t"
|
||||
}'
|
||||
Reference in New Issue
Block a user