Friday, February 21, 2014
Tuesday, February 18, 2014
An easier to use interface for the Blogger JSON API
As I have been reviewing the applications to use the Blogger JSON API, I have noticed that a fair number of you appear to be integrating with Blogger JSON API using JavaScript. So, in the interests of making things easier for all of you, here is a walk through of using the just released JavaScript Client Library for Google APIs to access the Blogger JSON API.
The first step is exploring the methods we can call in the Google APIs Explorer. The method in the Blogger JSON API collection that most people use, understandably, is the method to list the most recent posts for a Blog -
The information I am requesting from the Blogger JSON API is the post titles and content for the code.blogger.com blog which has a
The next step is the JavaScript required to request this data and make use of it. I am using the JavaScript Client Library to both construct the query, as well as navigate the results, reducing the complexity of the code.
To load the library, all we have to do is include a script in our HTML that loads the library as follows:
The part of this code to pay attention to is the argument
Inside the
You can see the results on code-blogger.appspot.com. I have used HTML5 Boilerplate as the starting point for building this example, to get all the latest HTML5 magic. If you have any questions about this sample, please post them to theBlogger Developers Group.
The first step is exploring the methods we can call in the Google APIs Explorer. The method in the Blogger JSON API collection that most people use, understandably, is the method to list the most recent posts for a Blog -
posts.list. This method takes one required field - the blogId that identifies a particular blog - and a number of optional arguments that allow us to tune what information is returned.The information I am requesting from the Blogger JSON API is the post titles and content for the code.blogger.com blog which has a
blogId of 3213900. To limit the returned data to just the post titles and content, we use the optional argument fields with the value of items(content,title). Here is a link to the Google APIs Explorer with the appropriate information pre-filled so you can see both the underlying query that is sent to the Google APIs servers, as well as the shape of the returned JSON data.The next step is the JavaScript required to request this data and make use of it. I am using the JavaScript Client Library to both construct the query, as well as navigate the results, reducing the complexity of the code.
To load the library, all we have to do is include a script in our HTML that loads the library as follows:
The part of this code to pay attention to is the argument
onload=init. This nominates the init function to be called once the JavaScript Client Library has loaded. The init function is where we configure the client key and the API we want to work with:function init() {
gapi.client.setApiKey('YOUR_API_KEY');
gapi.client.load('blogger', 'v2', function() {
// ...
});
}
You can retrieve the API Key from your project on the Google APIs Console, once you have requested that I enable the Blogger API for your project. The gapi.client.load function takes the API name, and version, of the API you want to use, and a callback function to run once the API support code has been loaded. In this code, we are loading the Blogger v2 API.Inside the
gapi.client.load callback, we have the following code to configure a request to the Google APIs servers:var request = gapi.client.blogger.posts.list({
'blogId': 3213900,
'fields': 'items(content,title)'
});
Note how we now no longer need to construct our own query url. The JavaScript Client Library deals with all the messy issues of making sure the arguments are correctly escaped. Next, we can issue the request to the servers as follows:request.execute(function(response) {
// ...
});
The execute method takes a callback function that will be executed once the Google APIs servers respond. The most important part of this callback function is the data that is handed to us in the response argument. In the body of the callback function, I iterate over the items member to pull out the titles and contents of all the returned posts:for (var i = 0; i < response.items.length; i++) {
$("#target").append("
" + response.items[i].title + "
");
$("#target").append(response.items[i].content);
if (i+1");
}
}
The eagle eyed among you will have noticed that I am using jQuery to insert the returned HTML into the DOM. I am using the latest stable jQuery hosted on Google’s Libraries API.You can see the results on code-blogger.appspot.com. I have used HTML5 Boilerplate as the starting point for building this example, to get all the latest HTML5 magic. If you have any questions about this sample, please post them to theBlogger Developers Group.
Monday, February 17, 2014
2014 Agenda Cultural Campus @ FIX University newsRus.com InglesAgil RecStay(A&F)
Iconografía Calima “La Metalurgia, expresión de poder Calima”.
22 de Febrero de 2014. 10:00 am - 12:00 pm
CALI, Área Cultural Banco de la República
Máscara
Ilama 1600 a.C. - 100 d.C. 17 x 19,7 cm
Restrepo, Valle del Cauca
Museo del Oro Calima
Banco de la República
Panel Cosmovisión indígena, motor para la conservación del patrimonio natural.
21 de Febrero de 2014. 3:00 pm - 6:00 pm
CALI, Área Cultural Banco de la República
Este seminario pretende propiciar un espacio para la reflexión en torno a las diversas cosmovisiones y prácticas culturales indígenas, y su relación con los medios naturales con los cuales están en contacto. Somos conocedores que las comunidades primitivas desde tiempo prehistóricos han adoptado manejos sostenibles que han significado la preservación de este vital patrimonio, que contrasta con las mentalidades de occidente. Nuestra contemporaneidad afronta gravísimos problemas que atentan con la preservación y manejo adecuado de diferentes ecosistemas, es pues, responsabilidad de diferentes actores sociales generar comportamientos y propiciar medidas que garanticen la preservación y buen uso de estos recursos.
Conferencistas:
Diego Armando Burgos Salamanca
Administrador del Medio Ambiente y de los Recursos Naturales, de la Universidad Autónoma de Occidente -UAO-, Cali-Colombia, Master en Agroecología, Cultura y Desarrollo Endógeno Sostenible en Latinoamérica, de la Universidad Mayor de San Simón y Agroecología Universidad de Cochabamba –AGRUCO- Bolivia. Docente-Investigador de la UAO, Programa Administración Ambiental, Miembro del Programa internacional Comparando apoyando el Desarrollo endógeno sostenible en Latinoamérica –COMPAS-.
Jesús Alfonso Flórez López
Antropólogo y Filósofo Universidad Nacional de Colombia. Doctor en antropología Universidad Paris 8. Decano facultad de Humanidades Universidad Autónoma de Occidente Cali.
Lugar: Área Cultural Banco de la República Calle 7 N° 4 - 69
Informes: 6847754-51 svalenvi@banrep.gov.co
Entrada Libre
Concierto
Sango Groove (Colombia)
Pacífico, Jazz, Funk & Afrobeat
20 de Febrero de 2014. 7:00 pm
CALI, Comfandi, Calle 8a No. 6-23
El Centro Cultural Comfandi, La Alianza Francesa de Cali y el Banco de la República invitan al segundo concierto de la temporada de conciertos que organizan conjuntamente en la ciudad de Cali.
Ciclo: 40/25 Joyas del Cine Colombiano.
Lugar: Centro Cultural de Cali.
Hora: 2 p.m. Entrada Libre.
Selección de largometrajes y cortometrajes restaurados y preservados por la Fundación Patrimonio Fílmico Colombiano
Lunes 17:
• En agosto (2007), de Andrés Barrientos, 14 min.
• Magnolia (2008), de Diana Montenegro, 15 min. • Asunto de gallos (2008), de Joan Gómez Endara, 16 min.
• Marina, la esposa del pescador (2009), de Carlos Hernández, 13 min.
• La Hortúa (2009), de Andrés Chaves, 24 min.
• Animalario (2012), de Sergio Mejía Forero, 17 min.
Asociación de Astrónomos Aficionados de Cali ASAFI
Invita a la Conferencia
EXOBIOLOGÍA, a cargo de Fernando Duque Tobón, Biólogo Marino
Encontrar vida en otro planeta es una de las grandes obsesiones humanas, no sólo porque nos ayudaría a comprender cómo se originó la vida en nuestro planeta, sino porque nos confirmaría que no estamos solos en el universo. El uso de potentes instrumentos ópticos y de radio, nos han permitido escudriñar el cielo, en búsqueda de vida, alrededor de 20 años luz de nosotros con resultados poco positivos hasta ahora.
Martes 18 de Febrero de 2014 – 6:30 PM
Sala Múltiple 2
Biblioteca Departamental Jorge Garcés Borrero
Cali - Colombia
Asociacion de Astronomos Aficionados ASAFI
asaficali@gmail.com
Tambien estamos en Facebook
asaficali@gmail.com
Visite nuestra pagina web http://www.asafi.co
Web Master: Diego Castaño
Y nuestro blog http://asociaciondeastronomosaficionados.blogspot.com
Administrador Blog: Arlex López
El Grupo de Poesía Grainart tiene el gusto de invitarlos
mañana sábado 15 de febrero nuestro Taller Semilla de Versos
tema: "El romanticismo en la poesía", a cargo de Maria Ximena Hoyos Mazuera,Magíster en Literatura Colombiana y Latinoamericana, docente en Lenguas Modernas y Literatura,quién disertará acerca de las raíces del romanticismo en la poesía y en la literatura..
Lugar : Biblioteca Departamental Vallesalón Jorge Isaacs
a las 3:00 P.M
Y el día 22 de febrero en nuestras Lecturas Urgentes de Poesía Valle del Cauca, el lanzamiento de Grainart - Antología Poética.
a las 6:00 P.M en las instalaciones de la Biblioteca Departamental Jorge Garces Borrero, salón Diego Garcés.
La entrada es gratuita para ambos eventos.
La entrada es gratuita

El Centro Cultural Comfandi, La Alianza Francesa de Cali y el Banco de la República invitan al segundo concierto de la temporada de conciertos que organizan conjuntamente en la ciudad de Cali.
More FIX on the NET @ FIX University Cultural Campus
Subscribe to:
Posts (Atom)
Followers
Blog Archive
- ► 2015 (98)
- ► 2014 (133)
- ► 2013 (134)
- ► 2012 (206)




































































































