Création des Logiciels de gestion d'Entreprise, Création et référencement des sites web, Réseaux et Maintenance, Conception




Création des Logiciels de gestion d'Entreprise, Création et référencement des sites web, Réseaux et Maintenance, Conception




| Brendan |
| Antonio |
Loading an API and making a request is as easy as executing:
<script src="https://apis.google.com/js/client.js?onload=CALLBACK"></script>
You can use the APIs Explorer to check all the methods available for an API, as well as the parameters for each method. For instance, use the above syntax with the
gapi.client.load('API_NAME', 'API_VERSION', CALLBACK);
// Returns a request object which can then be executed.
// METHOD_NAME is only available once CALLBACK runs.
var request = gapi.client.METHOD_NAME(PARAMETERS_OBJECT);
request.execute(callback);
plus.activities.search method of the Google+ API to query activities:To try this yourself, sign up in the Google APIs console or refer to the documentation on acquiring and using a developer key in the Google+ API.
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<script type="text/javascript">
function init() {
// Load your API key from the Developer Console
gapi.client.setApiKey('YOUR_API_KEY');
// Load the API
gapi.client.load('plus', 'v1', function() {
var request = gapi.client.plus.activities.search({
'query': 'Google+',
'orderby': 'best'
});
request.execute(function(resp) {
// Output title
var heading = document.createElement('h4');
heading.appendChild(document.createTextNode(
resp.title));
var content = document.getElementById('content');
content.appendChild(heading);
// Output content of the response
if (!resp.items) {
content.appendChild(document.createTextNode(
'No results found.'));
} else {
for (var i = 0; i < resp.items.length; i++) {
var entry = document.createElement('p');
entry.appendChild(document.createTextNode(
resp.items[i].title));
content.appendChild(entry);
}
}
});
});
}
</script>
<script src="https://apis.google.com/js/client.js?onload=init"></script>
<div id="content"></div>
</body>
</html>
Facebook:
Facebook is not the first social network but it is the most popular one. There have been many other social networks before Facebook and while some of them were popular at some point in time, none could reach the popularity of Facebook. In addition to keeping in touch with your friends, Facebook can be (and is) used for business. You can use it to promote your products and services, to acquire new clients, or to get traffic to your site.
Benefits:
As with Twitter and any other social network, if you don't make your profile interesting, you will hardly become popular. Give enough background information for you and don't forget to make your profile public because this way even people, who don't know you, when they encounter your profile, they might become interested in you and become a supporter of yours.
Twitter:
Twitter is simple to use and this is what made it so popular. Twitter is fashionable right now, so enjoy the moment. Even the creators of Twitter admit that as with MySpace and other Web 2.0 sensations, Twitter will inevitably go out of fashion some day, so hurry up and get some traffic for free now, when it is still all the rage of the season.