Unsubscribe token


  • What is right in following:
    sws.unsubscribe(correlation_id, mode, token_list1)
    or
    sws.subscribe(action=0, correlation_id, mode)
    or
    sws.subscribe(action=0, mode, token_list1)
    or
    sws.unsubscribe(action=0, correlation_id, mode, token_list1)
    or
    sws.unsubscribe(action=0, correlation_id, mode, )

    or
    sws.unsubscribe(action=0, correlation_id, token_list1)

    or
    sws.unsubscribe( correlation_id, mode, token_list1)

    or
    sws.unsubscribe(action, mode, token_list1)


  • @hardip
    Hello there, you have given 8 options. Out of these, only 1 and 7 are correct. The sequence of the parameters you are passing is very important when calling functions. And it also depends on how the function takes parameters and written. Hope it helps.

    Regards,
    Jaideep Siddula