Giter Club home page Giter Club logo

Comments (3)

tjanczuk avatar tjanczuk commented on June 28, 2024

What is the HTTP status code of the response you are getting? If 401, make sure the credentials are correct (http://msdn.microsoft.com/en-us/library/windows/apps/hh761462.aspx#notification_request_returns__401_unauthorized_).

Also make sure you follow the "troubleshooting" advice at http://msdn.microsoft.com/en-us/library/windows/apps/hh465391.aspx#troubleshooting_toast, in particular the "Check app manifest entries". Toast notifications must be explicitly enabled in the Windows 8 application (although I am not sure if having them disabled would manifest itself with a rejection on send).

from wns.

hrizvi avatar hrizvi commented on June 28, 2024

The status code is coming 200.

SYED HAIDER ABBAS RIZVI

Date: Fri, 17 Aug 2012 09:58:59 -0700
From: [email protected]
To: [email protected]
CC: [email protected]
Subject: Re: [wns] Authentication Error (#4)

What is the HTTP status code of the response you are getting? If 401, make sure the credentials are correct (http://msdn.microsoft.com/en-us/library/windows/apps/hh761462.aspx#notification_request_returns__401_unauthorized_).

Also make sure you follow the "troubleshooting" advice at http://msdn.microsoft.com/en-us/library/windows/apps/hh465391.aspx#troubleshooting_toast, in particular the "Check app manifest entries". Toast notifications must be explicitly enabled in the Windows 8 application (although I am not sure if having them disabled would manifest itself with a rejection on send).

          —

          Reply to this email directly or view it on GitHub.

from wns.

hrizvi avatar hrizvi commented on June 28, 2024

I just Checked the whole thing my uri is correct , client_id is correct and client_secret is also correct plus I'm getting the access code from the WNS cloud maybe sending parameters of the TextToast01 is becoming the reason of this error, just sending you the code which is as below:

//options includes my client id & secret key
// channel includes URI
wns.sendToastText01(channel,'haider',options,function(error,result) {

    if(error)
    {
        console.error('Error in Sending: '+ resp.statusCode);
         console.log('Error in sending toast :'+ error);
    }
    else
    {
        console.log(result);
        console.log('Toast Send: '+ result);
    }
});

from wns.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.