Skip to content
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

adicionar link de usuário #4

Open
virgiliodantas opened this issue Oct 7, 2020 · 0 comments
Open

adicionar link de usuário #4

virgiliodantas opened this issue Oct 7, 2020 · 0 comments

Comments

@virgiliodantas
Copy link

no arquivo glpi-sdk-ruby/lib/glpi/sdk/resource.rb :

  #adicionar usuário
  def self.ticket_user(session, id, attributes = {})
    item_type = attributes.key?(:item_type) ? attributes.delete(:item_type) : type_name
    payload = { input: attributes }.to_json
    puts payload
    session.request :post, "/#{item_type}/#{id}/Ticket_User", body: payload
    find(session, id, item_type)
  end

para adicionar o usuário como observador(3), atribuir a um usuário(2) ou requerente(1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant