This example uses the Python's requests
library.
Warning
NEVER store API keys within the code. Use ENV variables or other options to make sure the API keys are kept separately from the code.
CREATE TABLE widgets ( | |
id int NOT NULL identity(1,1), | |
uuid varchar(100) NOT NULL, | |
title varchar(250) NOT NULL, | |
thumbnail varchar(300) DEFAULT NULL, |
[ | |
{ | |
"_schema": "ddi2 codebook", | |
"_title": "DDI2 IHSN template", | |
"_description": "Template for Survey data type based on DDI 2.5", | |
"type": "fieldset", | |
"htmlClass": "form_fieldset form-fieldset-toggle", | |
"title": "Document", | |
"onClick": "toggle()", | |
"items": [ |
<?php | |
//usage | |
$paths_array=$print_paths("path-to-xml-file"); | |
var_dump($paths_array); | |
function print_paths($xml_file) |
/** | |
* | |
* Using CURL to download partial content from a URL | |
* | |
* @url file URL to download | |
* @range_start Start range in bytes | |
* @range_end End range in bytes | |
* | |
* | |
* example: curl_get_content("http://www.example.org/some-file.zip",100,500) |