Query
"bucketQuery" : {
"clause" : {
"type": "geodistance",
"field": "mylocation",
"center": {
"_type": "point",
"lat": 11.0,
"lon": 1.0
Query
"bucketQuery" : {
"clause" : {
"type": "geodistance",
"field": "mylocation",
"center": {
"_type": "point",
"lat": 11.0,
"lon": 1.0
var group1 = new KiiGroup.groupWithName("MyGroup"); | |
group1.save({ | |
success: function(savedGroup) { | |
// uri of the group. | |
var uri = savedGroup.objectURI(); | |
// create another instance of group references group1 | |
var group2 = new KiiGroup.groupWithURI(uri); | |
group2.refresh({ | |
success: function(refreshedGroup) { | |
var groupName = refreshedGroup.getName(); |
using UnityEngine;
using System.Collections;
using System.Net;
using System.IO;
using JsonOrg;
public class NewBehaviourScript : MonoBehaviour {
private string message = "";
// Omitting error handling to simplify the code.
// First time object creation on Kii Cloud.
KiiObject userProf = Kii.Bucket("myBucket").NewKiiObject();
userProf["userProf1"] = "prof value1";
userProf["userProf2"] = "prof value2";
userProf.Save();
// Store Object Uri in local storage.
- (IBAction)onClick:(id)sender {
NSDate *d = [[NSDate alloc]init];
double now = [d timeIntervalSince1970];
NSString *username = [NSString stringWithFormat:@"user-%f", now];
KiiUser *user = [KiiUser userWithUsername:username andPassword:@"1234"];
[user performRegistrationWithBlock:^(KiiUser *user, NSError *error) {
if (error != nil) {
NSLog(@"error on reg: %@", error);
return;
#include <iostream>
#include <thread>
#include <functional>
#include <map>
class hoge {
public:
int num;
hoge(const hoge& rv)
# -*- coding: utf-8; -*-
import httplib2
import json
import sys
import codecs
import urllib
sys.stdout = codecs.getwriter('utf_8')(sys.stdout)
package MyTest | |
import ( | |
"bytes" | |
"encoding/json" | |
"fmt" | |
"io/ioutil" | |
"net/http" | |
"testing" | |
) |