-
Notifications
You must be signed in to change notification settings - Fork 300
Topics targets messages #567
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Your Render PR Server URL is https://appwrite-io-docker-pr-567.onrender.com. Follow its progress at https://dashboard.render.com/web/srv-cmssbkmct0pc73ca71f0. |
gewenyu99
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Start of concept pages
| # Sending a message {% #create-a-message %} | ||
| You can create a message with the `METHOD` method using a Server SDK. | ||
| {% multicode %} | ||
| ```js |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@abnegate @stnguyen90 Simple code example of just the three methods.
We will cover full flow in detail in their journies.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should be able to determine the methods from the API. Do you need additional detail?
|
|
||
| # Types of targets {% #types-of-targets %} | ||
|
|
||
| [@abnegate @stnguyen90: TODO types of targets and how to create/add targets in console + code.] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@abnegate @stnguyen90 What are the different target types called?
What's the code like for creating targets?
Is there client code required?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What are the different target types called?
// Message types
const MESSAGE_TYPE_EMAIL = 'email';
const MESSAGE_TYPE_SMS = 'sms';
const MESSAGE_TYPE_PUSH = 'push';What's the code like for creating targets?
Client-side, you can only create a push target:
account.createPushTarget()
Server-side, you can create any target:
users.createTarget()
Is there client code required?
Did I answer your question?
| {% /tabsitem %} | ||
|
|
||
| {% tabsitem #server-sdk title="Server SDK" %} | ||
| Lorem ipsum dolor sit amet consectetur. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@abnegate @stnguyen90 Simple server SDK examples <3
| {% /tabsitem %} | ||
|
|
||
| {% tabsitem #server-sdk title="Server SDK" %} | ||
| Lorem ipsum dolor sit amet consectetur. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@abnegate @stnguyen90 Simple server SDK examples <3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see replies
Add all providers
What does this PR do?
(Provide a description of what this PR does.)
Test Plan
(Write your test plan here. If you changed any code, please provide us with clear instructions on how you verified your changes work.)
Related PRs and Issues
(If this PR is related to any other PR or resolves any issue or related to any issue link all related PR and issues here.)
Have you read the Contributing Guidelines on issues?
(Write your answer here.)