GithubHelp home page GithubHelp logo

mysamples's Introduction

Ruby Sample Programs to use freshdesk api with RestClient

Overview:

Sample programs for the fun of it.

  1. Create ticket api with cc_emails,custom_fields attribute
  2. Create ticket with attachments
  3. Create user basic
  4. Create user along with avatar image.
  5. Create user using(Net::Http)
  6. Update user.
  7. Update user with company details.
  8. Update ticket custom fields.
  9. Delete ticket
  10. Fetch contacts by query string.
  11. View ticket.
  12. View contact.
  13. Restore ticket.
  14. Assign ticket.
  15. delete user.
  16. rate a ticket response(survey rating)
  17. view survey result for the ticket.
  18. create customer
  19. update customer
  20. view customer
  21. delete customer

Troubleshoot:

Freshdesk API's use the Basic Access Authentication. Refer: http://en.wikipedia.org/wiki/Basic_access_authentication

So incase if you get "error":"access denied", its possible that you are not using the basic access authentication method ie., check the request Header "Authorization" is passed with Base64 encoded string of "username:password" or "apiKey:X" [Here X is just a dummy char, you can pass anything instead]

eg: ruby: request.basic_auth("[email protected]","test")

Java:

request.setHeader("Authorization", "Basic " + Base64.encodeBase64String("username:password".getBytes())); //Note the blankspace after "Basic".

Note:

The api's used are in reference from the http://freshdesk.com/api site. Its possible the samples has errors. I will try to keep it up to date as much as possible.

mysamples's People

Contributors

johnpaulh avatar

Stargazers

Adam Ellis avatar Aditya Varma avatar  avatar Joseph Leedy avatar Mike Durst avatar

Watchers

 avatar Minal Jain avatar  avatar Smruti Parida avatar

mysamples's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.