Skip to content

blak3r/freshdesk-solutions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FreshDesk.com PHP API Wrapper

Originally wrote this tool to import all of my KB articles from SugarCRM Knowledgebase. So, it originally was just methods creating for creating solutions. It's since been expanded to support user creation, company creation, topic monitoring, and even avatar creation! This api wrapper also serves as a good reference as it uses several undocumented API methods / features.

Highlights

Provides methods that are useful for creating articles.

  1. Facilitates creating solutions by allowing the use of strings instead of looking up category ids / folder ids / topics ids.
  2. When creating an article which has a folder name or category name that doesn't exist, they can be created automatically.
  3. Caches folder and category id's so they don't have to be looked up on subsequent operations. But, this is abstracted from you.

User Avatar Creation

See this blog post: http://www.blakerobertson.com/devlog/2013/6/13/generating-an-avatar-for-customers-with-a-splash-of-utility.html

In the samples folder you'll find a script which you can run from the command line and it'll create an avatar icon for each of your customers. The avatar will consist of the customers initials + a color bar which is common to the company.

Avatar Creation

Topic Monitoring

  1. Methods exist to subscribe users to topics and see which topics they subscribe to.

Ways To Improve

  1. Error handling is ok, but could be improved.
  2. Not 100% consistent with return types, check method comments.

Usage

  1. Copy the FreshdeskRest.php into your project.
  2. Here's some code.
<?php

require_once("FreshdeskRest.php");
$fd = new FreshdeskRest("yoursubdomain.freshdesk.com", "your_username", "your_password");
$fd->setCreateStructureMode('true'); // will create categories and folders if they don't exist.

$fd->createOrUpdateArticle("TEST CATEGORY", "Test_Folder", "Test Article Title", "The <u>HTML</u> of your body goes here!<P>Paragraph 2</P>");

Contributing

I accept pull requests and welcome code critiques.

gitimg

About

Includes wrapper class for implementing freshdesk rest api methods related to "Solutions". Also includes some curl examples.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages