Download latest PDF - Read the Docs

Transcript
newslynx Documentation, Release
Example Via CuRL
$ curl http://localhost:5000/api/v1/orgs/1\?apikey=$NEWSLYNX_APIKEY
Via newslynx
$ newslynx api orgs get id=1
Via python
from newslynx.client import API
api = API()
api.orgs.get(1)
PUT | PATCH /orgs/:org_id
Change an organization’s name, slug and/or timezone.
NOTE
• Requires admin privileges.
Params
ParameDescription
ter
apikey
Your apikey
localize Return dates in the org’s specified timezone. If false dates will be returned
in UTC.
Default
null
false
Required
true
false
Returns An updated Organization JSON object.
Body
{
"name": "ProPalpatine2",
"slug": "pro-palpatine-2",
"timezone": "US/Western"
}
Example Via CuRL
$ curl -X PUT -d name=ProPalpatine2 -d name=pro-palpatine-2 -d timezone=US/Western \
http://localhost:5000/api/v1/orgs/1\?apikey=$NEWSLYNX_APIKEY
Via newslynx
$ newslynx api orgs update id=1 name=ProPalpatine2 timezone=US/Western slug=pro-palpatine-2
Via python
1.12. NewsLynx API
31