Details
-
Type: extRequest
-
Status: Closed
-
Priority: Major
-
Resolution: Done
-
Fix Version/s: Sprint 4.1.2
-
Component/s: FIWARE-TECH-HELP
-
Labels:None
-
HD-Chapter:Apps
-
HD-Enabler:Wirecloud
Description
Buenos días,
Estoy intentando generar una subscripcion desde un operator del wireCloud y
necesitaría anadir una cabecera oauth en la request. esta parte no me esta
funcionando muy bien y querría saber como debería hacerlo...
Hasta ahora, el codigo para la subscripcipon es:
var doInitialSubscription = function doInitialSubscription() {
ngsi_server = MashupPlatform.prefs.get('ngsi_server');
ngsi_proxy = MashupPlatform.prefs.get('ngsi_proxy');
/*
connection = new NGSI.Connection(ngsi_server,
);
*/
connection = new NGSI.Connection(ngsi_server, {
requestHeaders:
});
var entityIdList = [
{type: 'pragmation', id: '.*', isPattern: true} ];
var attributeList = ['aciertos'];
var duration = 'P1M';
var throttling = null;
var notifyConditions = [
];
var options = {
flat: true,
onNotify: process_entities,
onSuccess: function (data)
};
connection.createSubscription(entityIdList, attributeList,
duration, throttling, notifyConditions, options);
};
Gracias de antemano por vuestra atención.
Un saludo,
Juan Carlos Hdez.
_______________________________________________
Fiware-lab-help mailing list
Fiware-lab-help@lists.fi-ware.org
https://lists.fi-ware.org/listinfo/fiware-lab-help
Activity
Field | Original Value | New Value |
---|---|---|
Assignee | Manuel Escriche [Administrator] [ mev ] | Rafael Fernández (UPM) [ rfernandez ] |
Component/s | FIWARE-LAB-HELP [ 10279 ] |
Workflow | Basic Workflow [ 12378 ] | FW eRequest Workflow [ 16122 ] |
Status | To Do [ 10001 ] | Open [ 1 ] |
Issue Type | Question [ 10004 ] | eRequest [ 10101 ] |
FI-WARE Environment | FI-LAB [ 10100 ] |
Assignee | Rafael Fernández (UPM) [ rfernandez ] | Álvaro Arranz García [ aarranz ] |
Workflow | FW eRequest Workflow [ 16122 ] | eRequest Workflow-2 [ 16356 ] |
Workflow | eRequest Workflow-2 [ 16356 ] | FW eRequest Workflow [ 16927 ] |
Reporter | FIWARE-LAB-HELP [ fiware-lab-help ] | FW External User [ fw.external.urser ] |
Status | Open [ 1 ] | In Progress [ 3 ] |
Resolution | Done [ 10000 ] | |
Status | In Progress [ 3 ] | Done [ 10000 ] |
Fix Version/s | Sprint 4.1.2 [ 10738 ] |
Summary | [Fiware-lab-help] ayuda para generar una subscripcion a Orion/context broker | FIWARE.Request.Lab.ApplicationMashup.HowToSubscribeToOrion |
Summary | FIWARE.Request.Lab.ApplicationMashup.HowToSubscribeToOrion | FIWARE.Request.Lab.Apps.ApplicationMashup.HowToSubscribeToOrion |
Component/s | FIWARE-TECH-HELP [ 10278 ] | |
Component/s | FIWARE-LAB-HELP [ 10279 ] |
Summary | FIWARE.Request.Lab.Apps.ApplicationMashup.HowToSubscribeToOrion | FIWARE.Request.Tech.Apps.ApplicationMashup.HowToSubscribeToOrion |
Workflow | FW eRequest Workflow [ 16927 ] | FW extRequest Workflow-II [ 40714 ] |
Status | Done [ 10000 ] | Closed [ 6 ] |
Issue Type | eRequest [ 10101 ] | extRequest [ 10104 ] |
HD-Enabler | Wirecloud [ 10857 ] | |
HD-Chapter | Apps [ 10836 ] |
Transition | Time In Source Status | Execution Times | Last Executer | Last Execution Date | |||||
---|---|---|---|---|---|---|---|---|---|
|
28d 1h 28m | 1 | Manuel Escriche | 22/Oct/14 4:01 PM | |||||
|
11d 21h 14m | 1 | Álvaro Arranz | 03/Nov/14 12:16 PM | |||||
|
4s | 1 | Álvaro Arranz | 03/Nov/14 12:16 PM | |||||
|
434d 20h 52m | 1 | Manuel Escriche | 12/Jan/16 9:08 AM |
Hola Juan Carlos,
siento responder tan tarde, ¿sigues teniendo problemas al crear la subscripción? En tal caso, ¿te importaría crear esta pregunta en StackOverflow usando la etiqueta fiware-wirecloud?
Un saludo.
Álvaro