首页 \ 问答 \ 在行动中发送字符串参数= track leanplum Rest Api无法正常工作(sending string parameter in action=track leanplum Rest Api not working)

在行动中发送字符串参数= track leanplum Rest Api无法正常工作(sending string parameter in action=track leanplum Rest Api not working)

我想使用动作脚本例如param:{“Element”:“Hi”}在Leanplum api中发送字符串参数

var request:URLRequest = new URLRequest("https://www.leanplum.com/api");
request.method = URLRequestMethod.GET;

var variables:URLVariables = urlVariables;
variables.userId = userId;      
variables.event = eventName;
var params:Object = new Object();
params.Element = "Hi";
var paramStr:String = JSON.stringify(params);
variables.params = paramStr;
variables.appId = appId;
variables.clientKey = clientKeyProduction;
variables.apiVersion = apiVersion;
variables.action = "track";
variables.versionName = AppInfo.getInstance().appVersion;
request.data = variables;
var loader:URLLoader = new URLLoader();

loader.addEventListener(Event.COMPLETE, function(e:Event):void {
                trace(e.target.data);
            });

loader.addEventListener(IOErrorEvent.IO_ERROR, function(e:IOErrorEvent):void {
                trace(e.target.data);
            });

loader.load(request);

这是实际的请求(App ID和ClientKey是虚拟的): https ://www.leanplum.com/api?clientKey=V42fKaJaBuE&userId=1010&params= {“Element”:“Ur”}&appId = HEVdDlXiBVLwk&event = Element_Opened&action = track&versionName = 2.3。 0 apiVersion = 1.0.6与信息=卢

编码请求: https://www.leanplum.com%2Fapi%3FclientKey%3DV42fKaJaBuE%26userId%3D1010%26params%3D%7B%22Element%22%3A%22Ur%22%7D%26appId%3DHEVdDlXiBVLwk%26event%3DElement_Opened%26action %3Dtrack%26versionName%3D2.3.0%26apiVersion%3D1.0.6%26info%3DLu

如果我在任何其他客户端运行上述请求,我获得相同的状态成功:true。

我收到响应{“response”:[{“success”:true}]}但是我找不到Leanplum仪表板中带有值字符串的参数,它的列表参数名称,但不能找到参数的字符串值。


I want to send string parameters in Leanplum api using action script Eg param:{"Element":"Hi"}

var request:URLRequest = new URLRequest("https://www.leanplum.com/api");
request.method = URLRequestMethod.GET;

var variables:URLVariables = urlVariables;
variables.userId = userId;      
variables.event = eventName;
var params:Object = new Object();
params.Element = "Hi";
var paramStr:String = JSON.stringify(params);
variables.params = paramStr;
variables.appId = appId;
variables.clientKey = clientKeyProduction;
variables.apiVersion = apiVersion;
variables.action = "track";
variables.versionName = AppInfo.getInstance().appVersion;
request.data = variables;
var loader:URLLoader = new URLLoader();

loader.addEventListener(Event.COMPLETE, function(e:Event):void {
                trace(e.target.data);
            });

loader.addEventListener(IOErrorEvent.IO_ERROR, function(e:IOErrorEvent):void {
                trace(e.target.data);
            });

loader.load(request);

This is actual Request (App ID and ClientKey are dummy): https://www.leanplum.com/api?clientKey=V42fKaJaBuE&userId=1010&params={"Element":"Ur"}&appId=HEVdDlXiBVLwk&event=Element_Opened&action=track&versionName=2.3.0&apiVersion=1.0.6&info=Lu

Encoded Request: https://www.leanplum.com%2Fapi%3FclientKey%3DV42fKaJaBuE%26userId%3D1010%26params%3D%7B%22Element%22%3A%22Ur%22 %7D%26appId%3DHEVdDlXiBVLwk%26event%3DElement_Opened%26action%3Dtrack%26versionName%3D2.3.0%26apiVersion%3D1.0.6%26info%3DLu

if I run above request in any rest client I get the same status success : true .

I am getting the response {"response": [{"success": true}]} but I can't find the parameters with value string in Leanplum dashboard, its listing parameter name but not the String Value for parameter.


原文:https://stackoverflow.com/questions/27290134
更新时间:2019-12-03 08:12

最满意答案

如果您应用某些过滤器组合,则可以看到您发送给leanplum的参数值。 首先选择某个事件的发生然后应用Group by参数然后选择要查看数据的参数。

它与乱舞,谷歌分析等有所不同。

在此处输入图像描述


If you apply some combination of filters then you can see values of parameter you sent to leanplum. like First select the occurrence of some event then apply Group by parameter then select parameter you want to see the data for.

Its a little different from flurry, Google analytics etc.

enter image description here

2014-12-11

相关问答

更多

如何从表单身份验证中取出信号器集线器(how to make signalr hub out from Form authentication)

您可以使用与普通文件夹相同的机制,只需使用<location path="signalr"> 。 您需要小心,因为这会将您的集线器暴露给来自Web的任何未经过身份验证的调用。 使用单独的集线器可能会更好,因此您可以将未经过身份验证的功能限制到最低限度。 有关文件夹级证券的更多信息,请参阅此处 。 You can use the same mechanism as for a normal folder, just use <location path="signalr">. You need t

显示由fineuploder上传到Amazon S3的图片?(Display images uploaded by fineuploder to Amazon S3?)

该错误消息表明服务器端密钥没有适当的权限来在相关存储桶上进行ListObjects或某些相关调用。 您需要重新评估与服务器端密钥关联的IAM用户/组,并确保它具有所有必需的已分配权限。 The error message suggests that the server-side key does not have proper permissions to make a ListObjects or some related call on the bucket in question. Yo

R:面板数据的假设检验(R:hypothesis testing for panel data)

好吧,我会尝试(虽然老实说我认为你的问题更不是真正了解统计数据,而不是理解R,因此这可能不是你真正需要的,因为我不是统计学家)。 您可以使用ANOVA(使用aov函数或等效地使用lm线性回归)轻松测试每年平均值不相等的假设。我将使用后者,因为它稍后会有用。这值得做第一次因为,从逻辑上讲,如果你可以拒绝它们都相等的零假设,你可以拒绝它们都等于任何特定值的零假设。 > l1 <- lm(X ~ Year, dta) > summary(l1) Call: lm(formula = X ~ Year

Kendo UI网格未填充JSON数据(Kendo UI grid is not populated with JSON data)

你对shema.data的定义不太对。 查看您的json,dsProduct下有一个包含该数组的子对象。 将您的数据更改为dsProduct.ttProduct,它应该可以工作。 schema: { data: "dsProduct.ttProduct", model: { 请参阅工作示例http://jsbin.com/vevixa/1/edit?html,js,console,output Your definition for the shema

如何根据数据框和numpy中的协变量对观测进行分类?(How to classify observations based on their covariates in dataframe and numpy?)

在回答你的上一个问题时,我绝对认为pandas是一个很好的工具; 它可以在numpy中完成,但是在处理数据帧时,pandas可以说更直观,并且对于大多数应用程序而言足够快。 pandas和numpy也很好地一起玩。 例如,在您的情况下,您可以使用numpy.select来构建您的pandas列: import numpy as np import pandas as pd # Lay out your conditions conditions = [((df.X1 < 0.5) & (df.

传递触发器结束日期时的C#Quartz警报(C# Quartz alert when trigger end date is passed)

您可以实现ISchedulerListener并侦听TriggerFinalized事件,该事件通知给定的触发器将永远不会根据其计划再次触发。 You can implement ISchedulerListener and listen for TriggerFinalized event that informs that the given trigger will never fire again according to its schedule.

非法数字 - Shell脚本(Illegal Number - Shell Script)

改变这个 while [ -d /proc/$pid ] ; do 同 while [ -d "/proc/$pid" ] ; do Change this while [ -d /proc/$pid ] ; do with while [ -d "/proc/$pid" ] ; do

.NET Core注册具有不同参数数量的原始通用(.NET Core Register Raw Generic with Different Number of Parameters)

您可以使用Reflection创建自己的扫描实现,以使用单行注册多个类型。 ServiceCollectionExtensions 在这里,我们实现了一个简单的Scan扩展方法,允许您选择一个接口(无论是通用的还是非泛型的),并且将为所有提供的程序集注册该接口的所有实现。 public static class ServiceCollectionExtensions { public static IServiceCollection Scan( this IServic

相关文章

更多

最新问答

更多
  • 根据Woocommerce中的自定义字段计算自定义购物车商品价格(Custom cart item price calculation based on dimentions custom fields in Woocommerce)
  • 分开foreach项目并单独打印(Separate foreach items and print them individually)
  • 写模式管道是否同步?(Is write mode pipe synchronous?)
  • 发现可用的Windows Phone强调色和本地化名称(Discover available Windows Phone accent colors and localized names)
  • 使用多线程和WPF更新集合(Update Collection with multithreading and WPF)
  • 如何在字符串的情况下使用同步?(How should the synchronization be used in case of strings?)
  • 打印唯一的行,比较不超过N个字符(Print unique lines, compare no more than N characters)
  • Javascript / jQuery - 如何调用switch case从另一个函数执行(Javascript/jQuery - how to call a switch case to execute from another function)
  • Hbase超时错误不断发生(Hbase timeout errors keep occuring)
  • 如何在Delphi中更改TabControl中活动TAB的颜色(How to change the color of active TAB in a TabControl, in Delphi)
  • 正则表达式:在sublime文本中替换一些PHP代码(Regex: replace some pieces of php code in sublime text)
  • 在带有Scene2D的LibGDX中,如何在按下按钮时连续向右走?(In LibGDX with Scene2D, how can I continuously walk to the right when a button is pressed?)
  • 累加器如何在Haskell中工作?(How do accumulators work in Haskell?)
  • 使用开关检查市场和前缀与正确的货币符号(using switch to check market and prefix with correct currency symbol)
  • 在哪里分配一次使用类?(Where to allocate one time use class?)
  • 如何从两个DateTime / NaiveDateTime获取持续时间?(How do I get Duration from two DateTime / NaiveDateTime?)
  • 解析TimeSpan大于24小时?(Parse a TimeSpan greater than 24 hours? [duplicate])
  • 如何在球拍中本地更改阅读规则?(How to locally change reading rules in racket?)
  • 数据库应该由DI注入时的模拟存储(通过构造函数)(Mock storage when database should be injected by DI (through constructor))
  • 使用maven集成2个eclipse项目(Integrate 2 eclipse projects using maven)
  • 角度ng-repeat不检测变化(Angular ng-repeat not detecting changes)
  • Xaml组件在Silverlight + XNA应用程序的多个页面中可见(Xaml component visible in multiple pages in Silverlight+XNA applications)
  • 如何将`var`变量等同于另一个查询(How to equate `var` variable to another query)
  • 如何设计hyperledger链代码以适合您的业务?(how to design your chaincode of hyperledger to fit for your business?)
  • PHP readfile错误(PHP readfile error)
  • 在Date之后排序列表然后是时间(Sorting list after Date then time)
  • Android内部版本号(Android build number)
  • 在没有预设退出条件的情况下停止无限循环(stopping an infinite loop with no preset exit condition)
  • Phonegap应用程序全屏通过html页面中的按钮(Phonegap Application fullscreen through a button in html page)
  • PAA是否适合在门户网站中自动执行wcm库部署和设置?(Is PAA a good candidate for automating wcm library deployment and setup in portal?)