Get the file content to attach in gmail header

66 views
Skip to first unread message

Oleg Disrupt

unread,
Nov 11, 2021, 9:33:30 PM11/11/21
to AdWords API and Google Ads API Forum
Hello
I want to read the csv file in header in my email.
Message part like this
[1]=>
  object(Google\Service\Gmail\MessagePart)#226 (15) {
...
    ["filename"]=>
    string(64) "test.csv"
...
    ["headers"]=>
    array(4) {
      [0]=>
      ...
      [1]=>
      ...
      [2]=>
      object(Google\Service\Gmail\MessagePartHeader)#229 (5) {
        ["name"]=>
        string(19) "Content-Disposition"
        ["value"]=>
        string(85) "attachment; filename=test.csv"
        ["internal_gapi_mappings":protected]=>
        array(0) {
        }
        ["modelData":protected]=>
        array(0) {
        }
        ["processed":protected]=>
        array(0) {
        }
      }

How can I read the content in test.csv using php, gmail api?
Thanks

Google Ads API Forum Advisor

unread,
Nov 12, 2021, 1:48:30 AM11/12/21
to ol...@disrupt.social, adwor...@googlegroups.com

Hello Oleg,

Thank you for reaching out to us.

As I've mentioned on the separate thread you've created, our team can only provide assistance to issues/concerns related to the AdWords API / Google Ads API.

For your Gmail API-related concern, we suggest that you reach out to their support channel via this link.

Regards,

Reminder: Share your feedback about the Google Ads (AdWords) API! Take the 2021 Google Ads API and AdWords API Annual Survey
 

Google Logo
Mark Kevin Albios
Google Ads API Team
 


ref:_00D1U1174p._5004Q2R8Paa:ref
Reply all
Reply to author
Forward
0 new messages