chriswarren / desk

A Ruby wrapper for the Desk.com V2 REST API
MIT License
66 stars 80 forks source link

Bug when creating articles #68

Open hilewhousels1 opened 8 years ago

hilewhousels1 commented 8 years ago

When creating articles through your desk API, articles were created as drafts and couldn't be seen on support center even when I explicitly added :in_support_center. I had to login and manually remove the draft attribute. This bug prevents automation when creating articles.

My API usage example:

Desk.create_article(
  :subject => "subject",
  :body => "body",
  :in_support_center => true,
  :links => {
    :topic => {
       :href => "/api/v2/topics/1",
       :class => "topic"
  }
})
chriswarren commented 8 years ago

Sorry to hear about that - have you had a chance to look through the code and see if you could make a pull request to fix this? I'm not sure when I'll have time to work on it myself, but if you want to take a look at it that'd be awesome.