示例#1
0
        public HttpResponseMessage GetToken(string Identity)
        {
            Token tok = new Token();

            tok.device   = "browser";
            tok.identity = Identity;
            if (tok.device == null || tok.identity == null)
            {
                return(null);
            }
            var token = _tokenGenerator.GenerateForVideo(Identity);

            return(ConvertToJSON(new { tok.identity, token }));
        }