Snipplrhttp://snipplr.com/tags/rest
Recent snippets posted on Snipplr.comen-usSat, 10 Dec 2016 02:48:29 GMT(PHP) HTML To PDF REST API for PHP Sample - How to convert a webpage to a PDF and stream it to the client browser as an attachment - selectpdfhttp://snipplr.com/view/144949/html-to-pdf-rest-api-for-php-sample--how-to-convert-a-webpage-to-a-pdf-and-stream-it-to-the-client-browser-as-an-attachment/
This code converts an url to pdf in PHP using SelectPdf REST API through a GET request. The content is sent to the browser. ]]>Fri, 13 Nov 2015 22:40:43 GMThttp://snipplr.com/view/144949/html-to-pdf-rest-api-for-php-sample--how-to-convert-a-webpage-to-a-pdf-and-stream-it-to-the-client-browser-as-an-attachment/(PHP) PHP Code Sample to Replace Multiple Text in PDF File Using Cloud API - johansonkatherinehttp://snipplr.com/view/74515/php-code-sample-to-replace-multiple-text-in-pdf-file-using-cloud-api/
The following code sample shows how developers can replace multiple texts in a single API call in a PDF file using Aspose.Pdf for Cloud API in their applications. Developers can use Aspose REST API with any language: .NET, Java, PHP, Ruby, Rails, Python, jQuery and many more. ]]>Thu, 08 May 2014 16:25:22 GMThttp://snipplr.com/view/74515/php-code-sample-to-replace-multiple-text-in-pdf-file-using-cloud-api/(C#) C# Code Sample to Replace Multiple Texts inside PDF File Using Cloud API - johansonkatherinehttp://snipplr.com/view/74514/c-code-sample-to-replace-multiple-texts-inside-pdf-file-using-cloud-api/
The following code sample shows how developers can replace multiple texts in a single API call in a PDF file using Aspose.Pdf for Cloud API in their applications. Developers can use Aspose REST API with any language: .NET, Java, PHP, Ruby, Rails, Python, jQuery and many more. ]]>Thu, 08 May 2014 15:18:06 GMThttp://snipplr.com/view/74514/c-code-sample-to-replace-multiple-texts-inside-pdf-file-using-cloud-api/(PHP) Convert PDF from Remote Server to other Format using Aspose.Pdf for Cloud API in PHP - johansonkatherinehttp://snipplr.com/view/74182/convert-pdf-from-remote-server-to-other-format-using-asposepdf-for-cloud-api-in-php/
Aspose.PDF for Cloud API has released PHP SDK which allows PHP developers to convert PDF files uploaded to a remote server to other formats. You can pass URL and format parameters to specify the PDF’s URL and output format and use the PUT method of the convert resource to convert remote PDF files. You can download Aspose Cloud PHP SDK from the link given below:
https://github.com/asposeforcloud/Aspose_Cloud_SDK_For_Php
The following code sample shows how you can use Aspose Cloud PHP SDK to convert PDF from remote server to TIFF image. You can define any format you want your PDF to convert to in “convertByUrl method”. You can view code for other languages on this page given below.
http://www.aspose.com/docs/display/pdfcloud/Convert+PDF+from+Remote+Server+to+other+Formats ]]>Fri, 11 Apr 2014 18:31:54 GMThttp://snipplr.com/view/74182/convert-pdf-from-remote-server-to-other-format-using-asposepdf-for-cloud-api-in-php/(Java) Java Code Sample to Create PDF from HTML Using REST API - johansonkatherinehttp://snipplr.com/view/74170/java-code-sample-to-create-pdf-from-html-using-rest-api/
This code sample shows how Java developers can create PDF file from HTML using Aspose.Pdf for Cloud API in their REST applications. ]]>Thu, 10 Apr 2014 17:13:37 GMThttp://snipplr.com/view/74170/java-code-sample-to-create-pdf-from-html-using-rest-api/(C#) C# Code Sample to Create PDF from HTML Using REST API - johansonkatherinehttp://snipplr.com/view/74169/c-code-sample-to-create-pdf-from-html-using-rest-api/
This code sample shows how C# developers can create PDF file from HTML using Aspose.Pdf for Cloud API in their REST applications. ]]>Thu, 10 Apr 2014 15:49:48 GMThttp://snipplr.com/view/74169/c-code-sample-to-create-pdf-from-html-using-rest-api/(Python) Merge Multiple Word Documents into Single Doc using REST API in Python - johansonkatherinehttp://snipplr.com/view/73997/merge-multiple-word-documents-into-single-doc-using-rest-api-in-python/
This REST example uses pycurl library to send HTTP request and handle HTTP response so you need to install it to use this example. Once input Word documents are uploaded, you can use the following URI to merge documents on Aspose for Cloud or any supported third party storage.
http://api.aspose.com/v1.1/words/MainDocument.docx/appendDocument
You can use a couple of optional parameters with the above mentioned URI. All or specific parameters can be used according to your requirement.
After building URI, you need to go through the following steps:
• Set App SID and App Key and sign URI. See section 1 of the following code and Sign URI method for more details.
• Build JSON to post in the request body. A list of input documents including their paths and import format modes should be provided. See section 2 of the following code.
• Send a POST request to Aspose for Cloud service. See section 3 of the following code and process_command method for more details.
• Download merged document file if required. See section 4 of the following code. ]]>Wed, 26 Mar 2014 19:03:53 GMThttp://snipplr.com/view/73997/merge-multiple-word-documents-into-single-doc-using-rest-api-in-python/(Java) Merge multiple PDFs using PHP REST API - johansonkatherinehttp://snipplr.com/view/73857/merge-multiple-pdfs-using-php-rest-api/
PHP developers can learn how to merge multiple PDF files into a single PDF file using PHP REST API and SDK. To merge PDFs, you need to upload input PDFs to Aspose for Cloud Service or any supported third party storage and then send a PUT request to Aspose for Cloud service.
This REST example uses PHP CURL library to send HTTP request and handle HTTP response so you need to install CURL to use these examples. Once input PDF files are uploaded, you can use the following URI to merge PDFs on Aspose for Cloud or any supported third party storage.
http://api.aspose.com/v1.1/pdf/MergedFile.pdf/merge
You can use a couple of optional parameters with the above mentioned URI. All or specific parameters can be used according to your requirement.
After building URI, you need to go through the following steps:
- Set App SID and App Key and sign URI. See section 1 of the following code and Sign URI method for more details.
- Build JSON to post in the request body. A list of input documents including their paths should be provided. See section 2 of the following code.
- Send a PUT request to Aspose for Cloud service. See section 3 of the following code and processCommand method for more details.
- Download merged PDF file if required. See section 4 of the following code. ]]>Thu, 13 Mar 2014 19:21:59 GMThttp://snipplr.com/view/73857/merge-multiple-pdfs-using-php-rest-api/(C#) C# and VB.NET Code to Split Worksheets of an Excel Workbook to TIFF or PNG in Cloud - johansonkatherinehttp://snipplr.com/view/73661/c-and-vbnet-code-to-split-worksheets-of-an-excel-workbook-to-tiff-or-png-in-cloud/
This technical tip shows how developers can split worksheets of an Excel workbook to a separate workbook, TIFF, PNG or any supported image format in the cloud. This example allows you to split all or specific worksheets of a workbook file and save each worksheet as a new workbook, TIFF or any supported image format using Aspose.Cells for Cloud API in your applications. You can use our REST API with any language: .NET, Java, PHP, Ruby, Rails, Python, jQuery and many more. Some of the code samples are provided for the above languages. ]]>Thu, 13 Feb 2014 19:29:55 GMThttp://snipplr.com/view/73661/c-and-vbnet-code-to-split-worksheets-of-an-excel-workbook-to-tiff-or-png-in-cloud/(PHP) REST - lesnikshttp://snipplr.com/view/73131/rest/
lesnikslesniks ]]>Wed, 11 Dec 2013 07:45:40 GMThttp://snipplr.com/view/73131/rest/(JavaScript) Javascript Flickr API Helper - Raymonderhttp://snipplr.com/view/69345/javascript-flickr-api-helper/
Class to create Flickr-API REST calls. ]]>Fri, 04 Jan 2013 03:02:38 GMThttp://snipplr.com/view/69345/javascript-flickr-api-helper/(PHP) REST API products and categories from pinnacleCart - crypticsofthttp://snipplr.com/view/66798/rest-api-products-and-categories-from-pinnaclecart/
This is a useful class which utilizes Phil Sturgeon's helpful restclient (http://getsparks.org/packages/restclient/versions/HEAD/show). Reference the URL attached for PinnacleCart API docs.
Example request URLs to get products and categories:
# Get product by product_id (XX##) or keyword(s)
~/products/getProducts/search/10/oj70/oj77/oj75
# Recently added products by CategoryID (/cID/batchSize)
~/products/getProductsByCategory/92/10
# Recently added product images by CategoryID (/cID/batchSize)
-- This was to remove the 'Description' key/value for slide shows
~/products/getProductImagesByCategory/92/10
# Recently added products by limit
~/products/getRecentlyAdded/20
# Get all categories
~/products/getCategories ]]>Sat, 18 Aug 2012 02:50:58 GMThttp://snipplr.com/view/66798/rest-api-products-and-categories-from-pinnaclecart/(JavaScript) CRM 2011: Retrieve StateCode (Status) using oData (REST) Service Endpoint - toLLhttp://snipplr.com/view/65999/crm-2011-retrieve-statecode-status-using-odata-rest-service-endpoint/
How to retrieve entity StateCode (Status) in JavaScript by accessing CRM oDATA (REST) Service ]]>Sat, 07 Jul 2012 00:30:09 GMThttp://snipplr.com/view/65999/crm-2011-retrieve-statecode-status-using-odata-rest-service-endpoint/(ActionScript 3) Custom response headers URLRequest AS3 - sidneydekoninghttp://snipplr.com/view/60880/custom-response-headers-urlrequest-as3/
]]>Wed, 16 Nov 2011 13:07:09 GMThttp://snipplr.com/view/60880/custom-response-headers-urlrequest-as3/(Bash) REST-Antwort http-header debuggen - abstraktorhttp://snipplr.com/view/52213/restantwort-httpheader-debuggen/
Der folgende Aufruf führt einen PUTrequest durch und zeigt (nur!!) den antwort-header an. Damit es funktioniert muss in app/controllers/application_controller.rb die zeile protect_from_forgery auskommentiert werden. ]]>Sun, 17 Apr 2011 06:29:57 GMThttp://snipplr.com/view/52213/restantwort-httpheader-debuggen/(PHP) Simple PHP Rest Cient using curl - wnasichhttp://snipplr.com/view/44760/simple-php-rest-cient-using-curl/
]]>Wed, 24 Nov 2010 07:46:57 GMThttp://snipplr.com/view/44760/simple-php-rest-cient-using-curl/(Groovy) Test Rest Grails Controllers - iurehttp://snipplr.com/view/39441/test-rest-grails-controllers/
]]>Tue, 24 Aug 2010 02:47:31 GMThttp://snipplr.com/view/39441/test-rest-grails-controllers/(C#) GetRESTData - JohnAganhttp://snipplr.com/view/35821/getrestdata/
]]>Thu, 17 Jun 2010 11:49:59 GMThttp://snipplr.com/view/35821/getrestdata/(PHP) GETful SOAP to JSON - Pjotorhttp://snipplr.com/view/30223/getful-soap-to-json/
A really simple SOAP to JSON and back script, for when you just want to kick SOAP in the groin.
With jQuery you'd just do:
$.getJSON('path/?function=myFunc&params={"param":"value"}&callback=?',function(json){alert(json);}); ]]>Wed, 24 Mar 2010 13:23:43 GMThttp://snipplr.com/view/30223/getful-soap-to-json/(Python) consume xml from RestFul webservices - magicrebirthhttp://snipplr.com/view/29583/consume-xml-from-restful-webservices/
ElementTree is provided as part of the standard Python libs. ElementTree is pure python, and cElementTree is the faster C implementation:
Here's an example usage, where I'm consuming xml from a RESTful web service: ]]>Thu, 11 Mar 2010 02:01:49 GMThttp://snipplr.com/view/29583/consume-xml-from-restful-webservices/