Tutorial by Examples: api

A typical payment flow with Stripe can be divided in two steps: Client-side, in your frontend (HTML + Javascript) code, you collect the customer's payment information using Stripe's prebuilt Checkout form or Elements form field(s). This will return a token that you then send to your server. ...
Using canvas elements HTML provides the canvas element for building raster-based images. First build a canvas for holding image pixel information. var canvas = document.createElement('canvas'); canvas.width = 500; canvas.height = 250; Then select a context for the canvas, in this case two-di...
Content Negotiation can be defined as the process of selecting best representation for a given resource. So Content negotiation means the client and server can negotiate between them so that client can get data according to their required format. There are three points on which internet depends, ...
In the following example we will be creating a table called Membership using the AWS Java SDK for DynamoDB. The table will consist of items that represent team assignments. The table will be partitioned by TeamID. Each team will have multiple members, identified by the MemberID (as a sort key). AWS...
Standards Accessibility/Laws - GNOME Wiki! Information and Communication Technology (ICT) Standards and Guidelines: Section 508 Information and Communication Technology (ICT) Standards and Guidelines: Section 508 Refresh Accessible Rich Internet Applications (WAI-ARIA) 1.0 (W3C R...
As an example you want to disable pagination in your default index action and get all results in index. How can you do that? It's simple. You should override the index action in your controller like this: public function actions() { $actions = parent::actions(); unset($actions['index'])...
The nlapiSubmitField column is a critical piece to understand. This column indicates whether the field is available for inline editing. If nlapiSubmitField is true, then the field can be edited inline. This greatly impacts how this field is handled when trying to use the nlapiSubmitField or record.s...
First of all, Ensure that the user which will be running this call has the Change backup settings and control backup process privilege. # # TC Backup Launcher # Script to launch a backup on the TeamCity Server # Param( [Parameter(Mandatory=$true)][string]$username, [Parameter(Mandato...
public class TestngAnnotation { // test case 1 @Test public void testCase1() { System.out.println("in test case 1"); } // test case 2 @Test public void testCase2() { System.out.println("in test case 2"); } @BeforeMethod pu...
Obtaining the Android API Key : First you'll need to get the SHA-1 fingerprint on your machine using java keytool. Execute the below command in cmd/terminal to get the SHA-1 fingerprint. keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android...
This example will guide you how to get playlist data using the YouTube Data API on Android. SHA-1 fingerprint First you need to get an SHA-1 fingerprint for your machine. There are various methods for retrieving it. You can choose any method provided in this Q&A. Google API console and YouTub...
YAML supports three styles of escape notation: Entity Escapes a. space: " " b. colon: ":" c. ampersand: "&" Unicode Escapes a. space: "\u0020" b. single quote: "\u0027" c. double quote: "\u0022" ...
File descriptors and FILE objects are per-process resources that cannot themselves be exchanged between processes via ordinary I/O. Therefore, in order for two distinct processes to communicate via an anonymous pipe, one or both participating processes must inherit an open pipe end from the process...
Connecting two child processes via a pipe is performed by connecting each of two children to the parent via different ends of the same pipe. Usually, the parent will not be party to the conversation between the children, so it closes its copies of both pipe ends. int demo() { int pipefds[2]; ...
In Swift 1 and 2, closure parameters were escaping by default. If you knew your closure wouldn’t escape the function body, you could mark the parameter with the @noescape attribute. In Swift 3, it’s the other way around: closure parameters are non-escaping by default. If you intend for it to escape...
From Swift Documentarion @escaping Apply this attribute to a parameter’s type in a method or function declaration to indicate that the parameter’s value can be stored for later execution. This means that the value is allowed to outlive the lifetime of the call. Function type parameters wi...
private final String COLLECTION_NAME = "myCollection"; private final String ZOOKEPER_CLIENT_TIMEOUT_MS = "1000000" private Map<String, String> getShardLeaders(CloudSolrServer cloudSolrServer) throws InterruptedException, KeeperException { Map<String, Stri...
Understanding the concept To understand content negotiation in Web API, it is important to understand the term Resource. On the web, any information that we can access can be referred as HTTP resource. There is a tremendous amount of material to view on the web which has different content type suc...
Reference the ArcGIS JavaScript API from our CDN and you are ready to get started:
//create a new ExcelPackage using (ExcelPackage excelPackage = new ExcelPackage()) { //create 2 WorkSheets. One for the source data and one for the Pivot table ExcelWorksheet worksheetPivot = excelPackage.Workbook.Worksheets.Add("Pivot"); ExcelWorksheet worksheetData = exc...

Page 9 of 12