Hi, i'm creator of php-pushwoosh, i'm currently implementing the /createTargetedMessage request in our API and have questions about the available properties.

In the Pushwoosh documentation the sample associated to /createTargetedMessage is the following :

{"request":{
    "auth":"PW AUTH TOKEN",
    "send_date":"now",
    "content": "Hello world",
    "devices_filter":"A(\"00000-00000\") * T(\"age\", BETWEEN, [17, 19])"
}}

Its ok but the documentation does not clearly indicate if the following Notification properties are also supported ?

  • ignore_user_timezone
  • timezone
  • campaign
  • page_id
  • rich_page_id
  • remote_page
  • link
  • minimize_link
  • data
  • preset
  • send_rate

So are those properties supported by /createTargetedMessage and do they accept the same data types and data "structure" (arrays, etc...) ?

Thanks,

Baptiste

asked 28 Feb '16, 20:13
bgaillard's gravatar image

bgaillard
416

Hi!

These notification properties you've mentioned are all supported and they indeed accept the same data types.

permanent link
answered 02 Mar '16, 13:44
Nikolai's gravatar image

Nikolai
3585

1

Hi Nikolai, thanks for your response, so we'll implement all those properties in version 1.5 of php-pushwoosh.

(09 Mar '16, 22:17) bgaillard bgaillard's gravatar image

Hi again Nikolai, what about the format of the /createTargetedMessage response structure.

Is the response to this request exactly the same as the response of the /createMessage request ?

That's to say something like...

{ "status_code" : 200, "status_message" : "OK", "response" : { "Messages" : [ "notificationCode0", "notificationCode1", "notificationCode2" ] } }

If the response of /createTargetedMessage is different than the response of /createMessage can you describe me the structure of this response ?

Thanks,

Baptiste

permanent link
answered 09 Mar '16, 23:30
bgaillard's gravatar image

bgaillard
416

edited 09 Mar '16, 23:31

Sure! The response of the /createTargetedMessage request looks like this:

{  
    "status_code": 200,  
    "status_message": "OK",  
    "response": {  
        "messageCode": "XXXX-XXXXXXXX-XXXXXXXX"  
    }  
}
permanent link
answered 10 Mar '16, 06:37
Nikolai's gravatar image

Nikolai
3585

1

Ok, thanks, unit tests has been written with you sample response so it should work. Version 1.5.0 of php-pushwoosh has been published :-)

(10 Mar '16, 10:57) bgaillard bgaillard's gravatar image

That's awesome! :)

(10 Mar '16, 10:59) Nikolai Nikolai's gravatar image
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×111
×4
×1

question asked: 28 Feb '16, 20:13

question was seen: 792 times

last updated: 10 Mar '16, 10:59