json

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
jazzdrive3's picture

JSONP Server with key authentication

I'm building an iPhone app using JQTouch/JQuery and PhoneGap, and so I was hoping the services module would allow me to pull content via javascript into my iPhone application from Drupal. In theory.

It took me all day to figure out why my calls weren't working with the normal JSON server...because it's cross-domain. Ugh.

So now I'm going to focus on JSONP, which should solve THAT problem. But I can't really find a clear explanation of how to do anything with key authentication in javascript. Or would key authentication even be necessary here? I do want it as secure as possible.

Read more
stodge's picture

Basic example of retrieving a node from a Drupal server using JSON/JQuery?

This might be a dumb question but are there any usable examples of retrieving a node's content and title from a Drupal server using JSON in Javascript? I've scoured Google and Drupal but nothing pops up that is usable. Any quick pointers appreciated. Thanks

Read more
gateway69's picture

Services + JSON + Advanced Profile Kit

Im wondering if their is a way to get the advance profile kit profile data via services, I know user.get can get information about the user from the main core Drupal profile but any way to change or fix this to get to load all the data from APK profile based upon user login, email etc?

thoughts?

Read more
arunoda's picture

Integration Engine on Drupal [DConnekt]

I'm Arunoda Susiripala from Srilanka.

I did google summer of code last year on Joomla! [0]

Project Proposal [ DConnekt ]

I want to purpose here is a integration engine which allows to integrate different application with Joomla! in a abstract way.
As an example if we successfully implemented this with Drupal ; we can bridge other application like Elgg, Wordpress without coding inside Drupal.

I've implemented Joomla version for this last GSOC and now it can be available here (called JConnekt) . [1]

Read more
datashaman's picture

CCK field names in JSON service results

When using the block display in views to generate a JSON object for the services module, specifically the views.get method, the names (and hence keys in JSON) generated are decidedly unfriendly.

For example:

{"#error":false,"#data":[{"nid":"56","node_data_field_identifier_field_footer_value":null,"node_data_field_identifier_field_footer_format":null,"node_type":"page","node_vid":"159","node_revisions_body":"","node_revisions_format":"2","node_revisions_teaser":"","node_title":"Career Advice","node_revisions_timestamp":"1266478559","node_data_field_identifier_field_whatsthis_value":"<p>Our career advice section provides you with excellent articles that can help you improve your career.<\/p>","node_data_field_identifier_field_whatsthis_format":"2"}]}

In the above case, I've attached a CCK field 'footer' to the content type, and the view is being accessed with an argument of field 'identifier'.

This wouldn't be so bad if it was consistent in its naming. Here's another example:


[{"#error":false,"#data":[{"nid":"113","node_data_field_footer_field_footer_value":null,"node_data_field_footer_field_footer_format":null,"node_type":"article","node_vid":"213","node_revisions_body":"

Read more
carlmcdade's picture

Hur man visar Drupal noder med jQuery för AJAX och JSON

Häromdagen nån frågade mig om mina kunskap om JSON som en Restful Service format. Jag har också sett många frågor om hur man hämtar noder via AJAX och visar dem på en sida. Många är nyfikna på just hur man sätt igång med jQuery i Drupal moduler och templat systemet. Jag tog lite tid ut från arbetssökandet och skapad en demo modul som vissar allt. Instruktioner är in på kod kommentar så att enda du behöver är att klip och klistra för att börja med AJAX. Lycka till!

Read more
mssjsg's picture

Connecting android with Drupal?

Dear all,

I am writing an android app currently and I am a newbie in web app.
I need to connect the android app that I write to a drupal site and get some data or submit data to it with the app.

I tried just using the xml-rpc server and try to connect to it with the android app but no luck yet.
For some reason, the app keep getting the output "invalid api key" which is actually not true. I know it must be some coding problem in my android app but I don't know what it is.

Read more
R.J. Steinert's picture

The Great American Hackathon (weekend) has begun!

Only local images are allowed.
We're participating here in Portland getting the Earth Policy Institute's (http://www.earth-policy.org) XLS data files available via an API and making them look beautiful in Drupal :).
From Sunlight Labs' Great American Hackathon site:

Read more
pbuyle's picture

Seeking guidance on how to add users location in Drupal 6

Hi,

I'm trying to use Drupal 6 as back-end for a map web application that show "ubuntu supporters" in Belgium (see http://map.ubuntu-be.org) and need guidance. The plan is to store user location and their commitments in Drupal. Then the existing JavaScript could be refactored to fetch the data from Drupal instead of the current had-hoc backend. After some research, it seems that the best solution to add (optional) information to user profile is to the Content Profile to create a "Profile node" for volunteering users. This node would have to provides a means to store user location.

Read more
ebeyrent's picture

JSON Server and Facebook

I am currently using Flex to consume an amfphp service, and it works great. However, when you try to use the swf on a Facebook profile, you have to click on an image first in order to load the swf.

My thought was to use the JSON server to return JSON to my facebook app. However, I get hit with the cross domain security issue. Has anyone here successfully accessed the JSON Server from a remote domain?

-Erich-

Read more
Subscribe with RSS Syndicate content