TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Guest User
Tech Writer
103
13.5k
Convert code c# to jquery.
May 27 2021 9:19 AM
Hello every one I have use this code for get notification data
var url = "https://onesignal.com/api/v1/notifications?app_id=8c8e38ee-443a-4684-b6fa-6b932f8fc572";
var httpRequest = (HttpWebRequest)WebRequest.Create(url);
httpRequest.Headers["Authorization"] = OneSignalNotificationKey;
var httpResponse = (HttpWebResponse)httpRequest.GetResponse();
using (var streamReader = new StreamReader(httpResponse.GetResponseStream()))
{
var result = streamReader.ReadToEnd();
}
Console.WriteLine(httpResponse.StatusCode);
But i want to use this data in jquery Please convert this data in jquery
Reply
Answers (
2
)
Get Player IDs and UserId form OneSignal.
Face Null Value Post Data.