Package org.jresponder.util

Examples of org.jresponder.util.JsonParamsHolder


                      @RequestParam(value="callback", required=false) String aCallback
                    ) {
     
      try {
       
        JsonParamsHolder p = new JsonParamsHolder(aParams);

        String myEmail = p.getString("email");
        Map<String,Object> myAttributesMap = p.getProps("props", null);
        String myMessageGroupName = p.getString("message_group_name");
       
        Subscriber mySubscriber =
            subscriberService.subscribe(myEmail, myAttributesMap, myMessageGroupName);
       
        return webApiUtil.jsonRpcResult(aId, aCallback, PropUtil.getInstance().mkprops("jr_subscriber_id", mySubscriber.getId()));
View Full Code Here


                      @RequestParam(value="callback", required=false) String aCallback
                    ) {
     
      try {
       
        JsonParamsHolder p = new JsonParamsHolder(aParams);
     
        String myToken = p.getString("token");
     
        subscriberService.unsubscribeFromToken(myToken);
       
        return webApiUtil.jsonRpcResult(aId, aCallback, PropUtil.getInstance().mkprops("success", true));
      }
View Full Code Here

                      @RequestParam("params") String aParams,
                      @RequestParam(value="callback", required=false) String aCallback
                    ) {
      try {
       
        JsonParamsHolder p = new JsonParamsHolder(aParams);
     
        String myToken = p.getString("token");
       
        subscriberService.removeFromToken(myToken);
       
        return webApiUtil.jsonRpcResult(aId, aCallback, PropUtil.getInstance().mkprops("success", true));
      }
View Full Code Here

                      @RequestParam(value="callback", required=false) String aCallback
                    ) {
     
      try {
       
        JsonParamsHolder p = new JsonParamsHolder(aParams);
     
        String myToken = p.getString("token");
       
        subscriberService.confirmFromToken(myToken);
     
        return webApiUtil.jsonRpcResult(aId, aCallback, PropUtil.getInstance().mkprops("success", true));
      }
View Full Code Here

TOP

Related Classes of org.jresponder.util.JsonParamsHolder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.