This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
exports = function(payload, response) { | |
const uuid = require('uuid') | |
var {userId} = payload.query; | |
//Gets a blank table from the game collection to store all the user properties. | |
let getBlankRecord = function() { | |
var newUserId = uuid.v4(); //New Guid | |
let filter = {}; | |
filter["Name"] = "gameVariables"; //Name of table. | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
//Modify these items. | |
const DOMAIN_KEY = "<youdomainKey>"; | |
const GAME_KEY = "<gameKey>"; | |
const GAME_VERSION = "<gameVersion>"; | |
const DEV_MODE = true; | |
</script> | |
<!DOCTYPE html> | |
<html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let ip = event.headers["x-forwarded-for"]; | |
let event_type = steps.trigger.event.query.event_type; | |
let api_key = steps.trigger.event.query.api_key; | |
var geo; | |
var geoip = require('geoip-lite'); | |
if (ip) { | |
geo = geoip.lookup(ip); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==================================================================================================== | |
// | |
// Cloud Code for analytics, write your code here to customize the GameSparks platform. | |
// | |
// For details of the GameSparks Cloud Code API see https://docs.gamesparks.com/ | |
// | |
// ==================================================================================================== | |
var baseURL = "https://api2.amplitude.com/2/httpapi" | |
//Required |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if( $_GET["api_key"] && ($_GET["user_id"] || $_GET["device_id"] ) && $_GET["event_type"] ) { | |
// Required data | |
$data = array( | |
'event_type' => $_GET['event_type'] | |
); | |
if( $_GET["user_id"] ) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.buildbox.adapter.custom; | |
import android.app.Activity; | |
import android.util.Log; | |
import com.appodeal.ads.Appodeal; | |
import com.appodeal.ads.BannerCallbacks; | |
import com.appodeal.ads.InterstitialCallbacks; | |
import com.appodeal.ads.RewardedVideoCallbacks; | |
import com.appodeal.ads.api.App; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<dict><key>SKAdNetworkIdentifier</key><string>"su67r6k2v3.skadnetwork"</string></dict> | |
<dict><key>SKAdNetworkIdentifier</key><string>"4dzt52r2t5.skadnetwork"</string></dict> | |
<dict><key>SKAdNetworkIdentifier</key><string>"bvpn9ufa9b.skadnetwork"</string></dict> | |
<dict><key>SKAdNetworkIdentifier</key><string>"488r3q3dtq.skadnetwork"</string></dict> | |
<dict><key>SKAdNetworkIdentifier</key><string>"424m5254lk.skadnetwork"</string></dict> | |
<dict><key>SKAdNetworkIdentifier</key><string>"v79kvwwj4g.skadnetwork"</string></dict> | |
<dict><key>SKAdNetworkIdentifier</key><string>"22mmun2rn5.skadnetwork"</string></dict> | |
<dict><key>SKAdNetworkIdentifier</key><string>"kbd757ywx3.skadnetwork"</string></dict> | |
<dict><key>SKAdNetworkIdentifier</key><string>"zmvfpc5aq8.skadnetwork"</string></dict> | |
<dict><key>SKAdNetworkIdentifier</key><string>"wzmmz9fp6w.skadnetwork"</string></dict> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SKAdNetworkItems = { | |
{ SKAdNetworkIdentifier = "su67r6k2v3.skadnetwork" }, | |
{ SKAdNetworkIdentifier = "4dzt52r2t5.skadnetwork" }, | |
{ SKAdNetworkIdentifier = "bvpn9ufa9b.skadnetwork" }, | |
{ SKAdNetworkIdentifier = "488r3q3dtq.skadnetwork" }, | |
{ SKAdNetworkIdentifier = "424m5254lk.skadnetwork" }, | |
{ SKAdNetworkIdentifier = "v79kvwwj4g.skadnetwork" }, | |
{ SKAdNetworkIdentifier = "22mmun2rn5.skadnetwork" }, | |
{ SKAdNetworkIdentifier = "kbd757ywx3.skadnetwork" }, | |
{ SKAdNetworkIdentifier = "zmvfpc5aq8.skadnetwork" }, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Version 3.0: Saving and retrieving a shared table. | |
// Version 2.1: Added header so that returned table gets encoded correctly. | |
// Version 2.0: Save and retrieve table | |
// Version 1.0: Login | |
// Change these parameters for your game | |
var returnFalseOnLock = true; | |
var requestType = Spark.getData().requestType; | |
var tableData = Spark.getData().params; | |
Spark.setScriptData("RESPONSE_HEADERS", {"content-type":"text/html; charset=utf-8"}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
----------------------------------------------------------------------------------------- | |
-- | |
-- main.lua | |
-- | |
----------------------------------------------------------------------------------------- | |
local composer = require( "composer" ) | |
local json = require( "json" ) | |
local scene = composer.newScene() | |
local widget = require "widget" |
NewerOlder