python-gitlab
1.15.0
  • Installation
  • gitlab CLI usage
  • Getting started with the API
  • FAQ
  • Switching to GitLab API v4
  • API examples
    • Access requests
    • Award Emojis
      • Reference
      • Examples
    • Badges
    • Branches
    • Clusters
    • Broadcast messages
    • Commits
    • Deploy keys
    • Deployments
    • Discussions
    • Environments
    • Events
    • Epics
    • Features flags
    • Geo nodes
    • Groups
    • Issues
    • Issue boards
    • Labels
    • Notification settings
    • Merge requests
    • Merge request approvals settings
    • Milestones
    • Namespaces
    • Notes
    • Pages domains
    • Pipelines and Jobs
    • Projects
    • Protected branches
    • Runners
    • Registry Repositories
    • Registry Repository Tags
    • Search API
    • Settings
    • Snippets
    • System hooks
    • Templates
    • Todos
    • Users and current user
    • Sidekiq metrics
    • Wiki pages
  • gitlab package
  • Release notes
  • ChangeLog - Moved to GitHub releases
python-gitlab
  • Docs »
  • API examples »
  • Award Emojis
  • View page source

Award Emojis¶

Reference¶

  • v4 API:
    • gitlab.v4.objects.ProjectIssueAwardEmoji
    • gitlab.v4.objects.ProjectIssueNoteAwardEmoji
    • gitlab.v4.objects.ProjectMergeRequestAwardEmoji
    • gitlab.v4.objects.ProjectMergeRequestNoteAwardEmoji
    • gitlab.v4.objects.ProjectSnippetAwardEmoji
    • gitlab.v4.objects.ProjectSnippetNoteAwardEmoji
    • gitlab.v4.objects.ProjectIssueAwardEmojiManager
    • gitlab.v4.objects.ProjectIssueNoteAwardEmojiManager
    • gitlab.v4.objects.ProjectMergeRequestAwardEmojiManager
    • gitlab.v4.objects.ProjectMergeRequestNoteAwardEmojiManager
    • gitlab.v4.objects.ProjectSnippetAwardEmojiManager
    • gitlab.v4.objects.ProjectSnippetNoteAwardEmojiManager
  • GitLab API: https://docs.gitlab.com/ce/api/award_emoji.html

Examples¶

List emojis for a resource:

emojis = obj.awardemojis.list()

Get a single emoji:

emoji = obj.awardemojis.get(emoji_id)

Add (create) an emoji:

emoji = obj.awardemojis.create({'name': 'tractor'})

Delete an emoji:

emoji.delete
# or
obj.awardemojis.delete(emoji_id)
Next Previous

© Copyright 2013-2018, Gauvain Pocentek, Mika Mäenpää.

Built with Sphinx using a theme provided by Read the Docs.