2 Replies Latest reply on Aug 4, 2015 1:29 AM by pawans

    Regression in JS API? Cannot create stream associations / follows anymore

      I noticed that the createAssociations method for a stream object in the JS API does not seem to work anymore in the latest Jive Cloud release.

       

      The same code works fine in older versions of Jive. Has someone else run into this and can confirm? For the uninitiated: You use this method to pro grammatically follow an object in Jive.

       

      Here is my code:

         var request = fullUser.getStreams();
                      request.execute(function (streams) {
                         
                          $.each(streams.list, function (key, stream) {
      
      
                              console.log(stream.source);
                              if (stream.source == "connections") {
                                  console.log(value);
                                  var array = [self.selectedJiveObject().resources.self.ref];
                                  var request = stream.createAssociations(array);
                                  request.execute(function (association) {
                                    console.log(association);
                                    });
                          }
                         });
                    });