GAM calendar <email> addevent - needing to insert a linefeed into the description

67 просмотров
Перейти к первому непрочитанному сообщению

Matthew Russell

не прочитано,
10 янв. 2017 г., 18:15:0310.01.2017
– GAM for G Suite
Hi.  Does anyone know how I can insert a new line feed into the description of the event when using GAM calendar <email> addevent?

I tried "\n" and "\\n" and """\\n""" and """\n"""  based on the V3 API doc for Google. 

Thanks in advance
Matt

Ross Scroggs

не прочитано,
10 янв. 2017 г., 19:12:2110.01.2017
– google-ap...@googlegroups.com
Matthew,

No. I'll submit the change to Jay, in the meantime my version will do it: https://github.com/taers232c/GAM-B/releases

gam calendar f...@domain.com addevent ... description "Line 1\nLine 2\nLIne 3"

Ross

--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.
To post to this group, send email to google-apps-manager@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/d33c84aa-bf24-4c41-961c-afc1e98fb0a3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Matthew Russell

не прочитано,
11 янв. 2017 г., 18:43:1911.01.2017
– GAM for G Suite
Thanks Ross.

MikeM

не прочитано,
14 апр. 2019 г., 23:48:5814.04.2019
– GAM for G Suite
Was this ever ported to the regular GAM?  I'm having the same issue.


On Tuesday, January 10, 2017 at 5:12:21 PM UTC-7, Ross Scroggs wrote:
Matthew,

No. I'll submit the change to Jay, in the meantime my version will do it: https://github.com/taers232c/GAM-B/releases

gam calendar f...@domain.com addevent ... description "Line 1\nLine 2\nLIne 3"

Ross
On Tue, Jan 10, 2017 at 3:15 PM, Matthew Russell <russ...@glennie.qld.edu.au> wrote:
Hi.  Does anyone know how I can insert a new line feed into the description of the event when using GAM calendar <email> addevent?

I tried "\n" and "\\n" and """\\n""" and """\n"""  based on the V3 API doc for Google. 

Thanks in advance
Matt

--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.



--
Ross Scroggs

Ross Scroggs

не прочитано,
15 апр. 2019 г., 10:27:2815.04.2019
– google-ap...@googlegroups.com
Mike,

Yes. What platform (Windows/Mac/Linux) are you?
Show the command you are executing.

To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.

To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.

MikeM

не прочитано,
15 апр. 2019 г., 10:45:3315.04.2019
– GAM for G Suite
Sorry, this was a code error on my part.  the command was something like (trimmed)

$cmd = "gam calendar account@----.com addevent description 'this is a test \n this is another line' ";

Apparently embedding the single quote in the double quote still made php not parse the \n. I changed it to

$cmd = "gam calendar account@----.com addevent description \"this is a test \n this is another line\" " ;

And it started working. Cant believe I have't run into that before.


Thanks!


On Monday, April 15, 2019 at 7:27:28 AM UTC-7, Ross Scroggs wrote:
Mike,

Yes. What platform (Windows/Mac/Linux) are you?
Show the command you are executing.

Ответить всем
Отправить сообщение автору
Переслать
0 новых сообщений