Latest version

This commit is contained in:
2011-06-14 15:30:21 +02:00
parent e00aa3b984
commit bf6cb36930
15 changed files with 1560 additions and 61 deletions
+24
View File
@@ -0,0 +1,24 @@
{
"metadata": {
"objectName": "eZ CONFERENCE & AWARDS 2011",
"classIdentifier": "frontpage",
"datePublished": 1195480486,
"dateModified": 1306758058,
"objectRemoteId": "8a9c9c761004866fb458d89910f52bee",
"objectId": 57,
"nodeId": 2,
"nodeRemoteId": "f3e90596361e31d496d4026eb624c983",
"fullUrl": "http:\/\/london2011.ez.no"
},
"links": {
"name": "http:\/\/london2011.ez.no\/api\/ezp\/content\/node\/2\/field\/name",
"subtitle": "http:\/\/london2011.ez.no\/api\/ezp\/content\/node\/2\/field\/subtitle",
"summary": "http:\/\/london2011.ez.no\/api\/ezp\/content\/node\/2\/field\/summary",
"body": "http:\/\/london2011.ez.no\/api\/ezp\/content\/node\/2\/field\/body",
"page": "http:\/\/london2011.ez.no\/api\/ezp\/content\/node\/2\/field\/page",
"tags": "http:\/\/london2011.ez.no\/api\/ezp\/content\/node\/2\/field\/tags",
"description": "http:\/\/london2011.ez.no\/api\/ezp\/content\/node\/2\/field\/description",
"*": "http:\/\/london2011.ez.no\/api\/ezp\/content\/node\/2\/fields"
},
"requestedResponseGroups": [ "Metadata" ]
}
+129
View File
@@ -0,0 +1,129 @@
{
"childrenNodes": [
{
"objectName": "Register",
"classIdentifier": "pardot_form",
"datePublished": 1302090674,
"dateModified": 1305549106,
"objectRemoteId": "fc831ba2d12dceb7063c3cc505eb6835",
"objectId": 1202,
"nodeId": 1255,
"nodeRemoteId": "ee2f05144e759af66ecce51c951e1d8e",
"fullUrl": "http:\/\/london2011.ez.no\/Register",
"link": "http:\/\/london2011.ez.no\/api\/ezp\/v1\/content\/node\/1255"
},
{
"objectName": "Awards",
"classIdentifier": "subcategory",
"datePublished": 1302091069,
"dateModified": 1307614988,
"objectRemoteId": "d0030e4e9bcc7c750f8632f6a21e3e94",
"objectId": 1203,
"nodeId": 1257,
"nodeRemoteId": "f4ef16fc0a59312cba563846df0947f2",
"fullUrl": "http:\/\/london2011.ez.no\/Awards",
"link": "http:\/\/london2011.ez.no\/api\/ezp\/v1\/content\/node\/1257"
},
{
"objectName": "Sponsorship",
"classIdentifier": "subcategory",
"datePublished": 1302092485,
"dateModified": 1306836982,
"objectRemoteId": "b6e0996328760db15880e369b80d4ad7",
"objectId": 1204,
"nodeId": 1258,
"nodeRemoteId": "985753bbd2cb56f4974b77c6706592e5",
"fullUrl": "http:\/\/london2011.ez.no\/Sponsorship",
"link": "http:\/\/london2011.ez.no\/api\/ezp\/v1\/content\/node\/1258"
},
{
"objectName": "Program",
"classIdentifier": "subcategory",
"datePublished": 1302615154,
"dateModified": 1306758514,
"objectRemoteId": "6a33ea773cb4b53b6e9cfaa3eba30a83",
"objectId": 1242,
"nodeId": 1290,
"nodeRemoteId": "863a37e73db4bc871ca7ba376b5ffdd0",
"fullUrl": "http:\/\/london2011.ez.no\/Program",
"link": "http:\/\/london2011.ez.no\/api\/ezp\/v1\/content\/node\/1290"
},
{
"objectName": "Become a sponsor",
"classIdentifier": "pardot_form",
"datePublished": 1302880201,
"dateModified": 1303844141,
"objectRemoteId": "9b658dadee4e7eae6b1e6f862d383e3d",
"objectId": 1284,
"nodeId": 1317,
"nodeRemoteId": "c5451492ef07cb27d3181053e88ca04d",
"fullUrl": "http:\/\/london2011.ez.no\/Become-a-sponsor",
"link": "http:\/\/london2011.ez.no\/api\/ezp\/v1\/content\/node\/1317"
},
{
"objectName": "Venue",
"classIdentifier": "subcategory",
"datePublished": 1303379183,
"dateModified": 1306504026,
"objectRemoteId": "a85b88e6470a3774174577333a2d2d7a",
"objectId": 1312,
"nodeId": 1340,
"nodeRemoteId": "f5639db00ad1c98775e5d5baac86a880",
"fullUrl": "http:\/\/london2011.ez.no\/Venue",
"link": "http:\/\/london2011.ez.no\/api\/ezp\/v1\/content\/node\/1340"
},
{
"objectName": "Location & Travel",
"classIdentifier": "subcategory",
"datePublished": 1303379268,
"dateModified": 1306504277,
"objectRemoteId": "7ec71fe395d7762ab6b53f4d1ba7ac0b",
"objectId": 1313,
"nodeId": 1341,
"nodeRemoteId": "d779c3fed2911e33c6fd44c6ed6e82ff",
"fullUrl": "http:\/\/london2011.ez.no\/Location-Travel",
"link": "http:\/\/london2011.ez.no\/api\/ezp\/v1\/content\/node\/1341"
},
{
"objectName": "Home",
"classIdentifier": "link",
"datePublished": 1303379367,
"dateModified": 1303840076,
"objectRemoteId": "a71a195cc6fcef87c1d3521e2ce720ac",
"objectId": 1314,
"nodeId": 1342,
"nodeRemoteId": "5e5a68e4bc098b37d6e53b4db7eac2d3",
"fullUrl": "http:\/\/london2011.ez.no\/Home",
"link": "http:\/\/london2011.ez.no\/api\/ezp\/v1\/content\/node\/1342"
},
{
"objectName": "Additional content",
"classIdentifier": "folder",
"datePublished": 1303383727,
"dateModified": 1303383727,
"objectRemoteId": "5c1e3a53e573cbdb1c316dd84abae1c5",
"objectId": 1319,
"nodeId": 1346,
"nodeRemoteId": "6b73f1f785501e23275132800fcd70f8",
"fullUrl": "http:\/\/london2011.ez.no\/Additional-content",
"link": "http:\/\/london2011.ez.no\/api\/ezp\/v1\/content\/node\/1346"
},
{
"objectName": "Contact",
"classIdentifier": "pardot_form",
"datePublished": 1303391868,
"dateModified": 1303392073,
"objectRemoteId": "b7e9ec37c1fff91c6f153d0b64a09632",
"objectId": 1325,
"nodeId": 1352,
"nodeRemoteId": "b7305ebbdbeee0f253f2410a7372b66e",
"fullUrl": "http:\/\/london2011.ez.no\/Contact",
"link": "http:\/\/london2011.ez.no\/api\/ezp\/v1\/content\/node\/1352"
}
],
"metadata": {
"childrenCount":"14",
"parentNodeId":"2"
},
"requestedResponseGroups": [ "Metadata" ]
}
+84
View File
@@ -0,0 +1,84 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>OAuth 2 User Agent Authentication Flow Demo</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>
<script type="text/javascript" charset="utf-8">
$(function () {
var extractToken = function(hash) {
var match = hash.match(/access_token=(\w+)/);
return !!match && match[1];
};
var setting =
{
'host': "london2011.ez.no"
, 'clientId': "98896cbfaa12dfba67ccdc18352a6374"
};
var authHost = "http://" + setting.host;
var resourceHost = "http://" + setting.host + "/api/ezp/v1";
var endUserAuthorizationEndpoint = authHost + "/oauth/authorize";
var token = extractToken(document.location.search);
if (token) {
$('div.authenticated').show();
$('span.token').text(token);
$.ajax({
url: resourceHost + '/content/node/2'
, beforeSend: function (xhr) {
xhr.setRequestHeader('Authorization', "OAuth " + token);
xhr.setRequestHeader('Accept', "application/json");
}
, success: function (response) {
var container = $('span.user');
if (response) {
container.text(response);
} else {
container.text("An error occurred.");
}
}
});
} else {
$('div.authenticate').show();
var returnTo = window.location;
returnTo = 'http://oauth.extranet.silversolutions.de/ssl/oauth/';
var authUrl = endUserAuthorizationEndpoint +
"?response_type=token" +
"&client_id=" + setting.clientId +
"&redirect_uri=" + encodeURIComponent( returnTo );
console.log( 'authUrl: %o', authUrl );
$("a.connect").attr("href", authUrl);
}
});
</script>
<style>
.hidden {
display: none;
}
</style>
</head>
<body>
<div class="authenticate hidden">
<a class="connect" href="">Connect</a>
</div>
<div class="authenticated hidden">
<p>
You are using token
<span class="token">[no token]</span>.
</p>
<p>
Your data is
<span class="user">[no username]</span>.
</p>
</div>
</body>
</html>
+84
View File
@@ -0,0 +1,84 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>OAuth 2 User Agent Authentication Flow Demo</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>
<script type="text/javascript" charset="utf-8">
$(function () {
var extractToken = function(hash) {
var match = hash.match(/access_token=(\w+)/);
return !!match && match[1];
};
var setting =
{
'host': "london2011.ez.no"
, 'clientId': "77d9f303efe45b6bfdf6a3e8e5860952"
};
var authHost = "http://" + setting.host;
var resourceHost = "http://" + setting.host + "/api/ezp/v1";
var endUserAuthorizationEndpoint = authHost + "/oauth/authorize";
var token = extractToken(document.location.search);
if (token) {
$('div.authenticated').show();
$('span.token').text(token);
$.ajax({
url: resourceHost + '/content/node/2'
, beforeSend: function (xhr) {
xhr.setRequestHeader('Authorization', "OAuth " + token);
xhr.setRequestHeader('Accept', "application/json");
}
, success: function (response) {
var container = $('span.user');
if (response) {
container.text(response);
} else {
container.text("An error occurred.");
}
}
});
} else {
$('div.authenticate').show();
var returnTo = window.location;
returnTo = 'http://london2011.ez.no/api/ezp/v1';
var authUrl = endUserAuthorizationEndpoint +
"?response_type=token" +
"&client_id=" + setting.clientId +
"&redirect_uri=" + encodeURIComponent( returnTo );
console.log( 'authUrl: %o', authUrl );
$("a.connect").attr("href", authUrl);
}
});
</script>
<style>
.hidden {
display: none;
}
</style>
</head>
<body>
<div class="authenticate hidden">
<a class="connect" href="">Connect</a>
</div>
<div class="authenticated hidden">
<p>
You are using token
<span class="token">[no token]</span>.
</p>
<p>
Your data is
<span class="user">[no username]</span>.
</p>
</div>
</body>
</html>
+86
View File
@@ -0,0 +1,86 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>OAuth 2 User Agent Authentication Flow Demo</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>
<script type="text/javascript" charset="utf-8">
$(function () {
var extractToken = function(hash) {
var match = hash.match(/access_token=(\w+)/);
return !!match && match[1];
};
var setting =
{
'host': "ssl.extranet.silversolutions.de"
, 'clientId': "03d34a9cc1f59cbd25f61f244f45826f"
};
var authHost = "http://" + setting.host;
var resourceHost = "http://" + setting.host + "/api/ezp/v1";
var endUserAuthorizationEndpoint = authHost + "/oauth/authorize";
var token = extractToken(document.location.search);
if (token) {
$('div.authenticated').show();
$('span.token').text(token);
$.ajax({
url: resourceHost + '/content/node/2'
, beforeSend: function (xhr) {
xhr.setRequestHeader('Authorization', "OAuth " + token);
xhr.setRequestHeader('Accept', "application/json");
}
, success: function (response) {
var container = $('span.user');
if (response) {
console.log( 'XHR Response: %o', response );
container.text( response.metadata.objectName );
} else {
container.text("An error occurred.");
}
}
});
} else {
$('div.authenticate').show();
var returnTo = window.location;
// returnTo = 'http://london2011.ez.no/api/ezp/v1';
var authUrl = endUserAuthorizationEndpoint +
"?response_type=token" +
"&client_id=" + setting.clientId +
"&redirect_uri=" + encodeURIComponent( returnTo );
console.log( 'authUrl: %o', authUrl );
$("a.connect").attr("href", authUrl);
}
});
</script>
<style>
.hidden {
display: none;
}
</style>
</head>
<body>
<div class="authenticate hidden">
<a class="connect" href="">Connect</a>
</div>
<div class="authenticated hidden">
<p>
You are using token
<span class="token">[no token]</span>.
</p>
<p>
Your data is
<span class="user" style="font-weight: bold;">loading...</span>.
</p>
(See JavaScript console for more info.)
</div>
</body>
</html>