We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hi when i use simple send, i don't have any problem and it send successfully. but when i use send with topic, it returned 403 code ...
my codes : ` var client = new HttpClient(); client.DefaultRequestHeaders.Add("Authorization", "Token ****");
var response = await client.PostAsync( "https://api.pushe.co/v2/messaging/notifications/", getTopicNotificationData(Title, content, token) ); var status_code = (int)response.StatusCode;`
`var data = new JObject(); data.Add("title", Title); data.Add("content", content); data.Add("action", "{"action_type":"G"}");
var topics = new JObject(); topics.Add("topics", new JArray(new String[] { token })); var request_data = new JObject(); request_data.Add("app_ids", new JArray(new String[] { "****" })); request_data.Add("data", data); request_data.Add("topics", topics); // Console.WriteLine("Request data: " + request_data.ToString()); return new StringContent(request_data.ToString(), Encoding.UTF8, "application/json");`
is any solution to solve it ...
The text was updated successfully, but these errors were encountered:
No branches or pull requests
hi
when i use simple send, i don't have any problem and it send successfully.
but when i use send with topic, it returned 403 code ...
my codes :
` var client = new HttpClient();
client.DefaultRequestHeaders.Add("Authorization", "Token ****");
`var data = new JObject();
data.Add("title", Title);
data.Add("content", content);
data.Add("action", "{"action_type":"G"}");
is any solution to solve it ...
The text was updated successfully, but these errors were encountered: