Tag Archives: API

How to Use New Login Method in Plugins and Services

This article explains how to use the new method LoginUser, added to the new GroupDocs SDK.

Requirements

We already know how to install the Fatfree framework and prepare for creating the sample from a previous article. The sample that we create in this article is not much different from… Continue Reading
Posted in zArchive | Tagged , , , , ,

How to Upload PHP Project to Heroku? – Advanced Steps

In the previous article, we learned how to create a new PHP project on Heroku. But sometimes our project requires additional extensions that do not exist in the Heroku PHP configuration. So we need to find out how to create and install extensions for PHP on Heroku.

In this post, I’ll show you these advanced steps, and create a PHP project on Heroku with the GroupDocs PHP SDK Api Samples application.

Preparation

All required preparation are described in previous articleContinue Reading

Posted in zArchive | Tagged , , , ,

How to Merge Data Fields from a DOCX File with a Data Source and Output to PDF

This article explains how to get the fields from a template DOCX file, fill them with data and merge to new PDF file using GroupDocs.

Requirements

We already know how to install the Fatfree framework and prepare for creating the sample from the previous article. The sample that we create in… Continue Reading
Posted in zArchive | Tagged , , , ,

Two Ways of Uploading Files into a GroupDocs Account

Working with GroupDocs SDK we usually need a GUID to work with a document. But it’s not very comfortable for users to work with GUIDs. So in your app, you can use two methods to upload a file to a GroupDocs account and get it’s GUID programmatically.

Requirements

We already know how… Continue Reading
Posted in zArchive | Tagged , , , ,

How to perform Callbacks with GroupDocs PHP SDK

This article explains the basics of using PHP SDK callbacks. In this article I’ll use the Convert API. Find information about other methods in the Swagger explorer.

Requirements

We already know how to install the Fatfree framework and prepare for creating the sample from the previous article. So lets start… Continue Reading
Posted in zArchive | Tagged , , , ,

How to Compare Files with GroupDocs PHP SDK

This article explains the basics of using PHP SDK classes and methods. In this article I’ll use the Comparison API and show how to compare two documents from a GroupDocs account. Find information about other methods in the Swagger explorer.

Requirements

We already know how to install the Fatfree framework and… Continue Reading
Posted in zArchive | Tagged , , , ,

How to Create GroupDocs Viewer Plugin for Contao CMS

This article explains the basics of creating a plugin for the Contao CMS using the Contao Viewer plugin as an example. You can download the completed plugin from Contao.

Requirements

  • Contao CMS
  • PHP 5.3
  • JavaScript

Preparation

To create a GroupDocs Viewer plugin for Contao CMS:
  1. Install Contao CMS. The installation of this CMS is a simple.
  2. Allow GroupDocs <iframe> to appear go to Admin > Setting > Security settings > Allowed HTML tags and just add <iframe> at
Continue Reading
Posted in zArchive | Tagged , , , ,

How to Deploy .NET Project on the AppHarbor

This article explains the basics of using AppHarbor. In this article, I’ll use the .NET SDK Samples project to show how to deploy a .NET project on AppHarbor.

Requirements

  • .NET project
  • App account
  • GitHub

Preparing

First of all, we need a AppHarbor account. If you don’t have one yet, please create one. Registration on AppHarbor is similar to any other site: sign up from the AppHarbor home page by clicking the Sign up button. Ok now we have AppHarbor… Continue Reading
Posted in zArchive | Tagged , , ,

How to use rspec to test GroupDocs API – Part 2

In the first article, How to use rspec to test GroupDocs API. Part 1, we created first test for GroupDocs API. This article describes in details how tests works, what expectation and matchers are, and how to test an API with the PULL method.

Expectation and Matchers

So what are expectation and matchers? Lets look at a small example:
string ="GroupDocs"
string.should have(9).characters
string.should_not have(5).characters
  • Expectations are defined by should and the negative form should_not.
  • Matchers are defined
Continue Reading
Posted in zArchive | Tagged , , , ,

How to Use RSpec to Test GroupDocs API? – Part 1

In this article, we will review how to use Ruby RSpec for testing REST APIs like GroupDocs. RSpec is a BDD (behavior driven development) framework. You can find more info about RSpec on its official site. There are a lot of different GroupDocs APIs that you can use. In this article we will test one of the User APIs: “Get user profile”.

What You Need

You need Ruby, Gem, Bundler, and RSpec (gem install rspec) installed on you computer.… Continue Reading
Posted in zArchive | Tagged , , ,