Skip to content

rishabh91/freshservice_apiv2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

freshservice_apiv2

Wrapper for Freshservice API V2

FS APIV2

Installation

Add this line to your application's Gemfile:

gem 'freshservice_apiv2'

And then execute:

$ bundle

Or install it yourself as:

$ gem install freshservice_apiv2

Authentication

With username & password:

With ApiKey:

Every agent in freshservice has an api key associated to them use it to authenticate you API calls.

Content-Type in headers:

If Content-Type is not provided by Default it sets it to 'application/json', however it can be changed as per your requirement. For instance For creating tickets with attachments the content-type should be set to 'multipart/form-data'. For doing that create a client object as described above then use the object to change the content-type key in your header.

client.header["Content-Type"] = "multipart/form-data"

Usage

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Releases

No releases published

Packages

 
 
 

Languages