Skip to content
This repository has been archived by the owner on Mar 23, 2021. It is now read-only.

Commit

Permalink
Update README_RU.md
Browse files Browse the repository at this point in the history
  • Loading branch information
s-krava committed Dec 12, 2018
1 parent 34e38d3 commit 700f069
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions mysql/README_RU.md
Expand Up @@ -152,11 +152,17 @@ curl -X POST https://REGION-PROJECT_ID.cloudfunctions.net/mysql/ -H "Content-Typ

### Python
```
from urllib import urlencode
from httplib2 import Http
import json
try:
from urllib import urlencode
except ImportError:
from urllib.parse import urlencode
trigger_url = "https://REGION-PROJECT_ID.cloudfunctions.net/mysql/"
headers = { "Content-Type": "application/json" }
headers = {"Content-Type": "application/json; charset=UTF-8"}
payload = {
"mysql":
{
Expand All @@ -175,8 +181,7 @@ payload = {
"table_id": "my_bq_table"
}
}
Http().request(trigger_url, "POST", urlencode(payload), headers = headers)
Http().request(method = "POST", uri = trigger_url, body = json.dumps(payload), headers = headers)
```

### [Google Apps Script](https://developers.google.com/apps-script/)
Expand Down

0 comments on commit 700f069

Please sign in to comment.