-
Notifications
You must be signed in to change notification settings - Fork 11
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
#65 admin/promo/create #103
Conversation
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.
Please add an ExampleService_xxxxxxx
.
You can add as many endpoints, or fix existing ones as you want 🤣 you can break it down one PR per endpoints or endpoint group to make it clean, but don't mix different kind of endpoints in one PR please.
promo.CreateRequest{NoteID: "8zwxx3cpy9", ExpiresAt: time.Now().Add(86400 * 24 * time.Hour).Unix()}, | ||
}, | ||
) | ||
} |
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.
Can you please add an example in the test, like other endpoints has? That way we always have simple examples for all endpoints that can be copy pasted if someone wants to play around.
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.
Have added an example of creating a promo request, following the example.
Have updated to fix the golint and golang-ci-lint issues. |
Have also added an example of creating a promo request. |
Description of the Change
Implemented an endpoint (/api/admin/promo/create) for an admin to create a promo for a note.
Issue or RFC
Issue #65
Documentation: https://misskey.io/api-doc#tag/admin
Alternate Designs
Possible Drawbacks
Verification Process
Unit test for creating a promo.
Release Notes
Created an endpoint for admin to promo a note.