We are using the DocuSign API to create Templates. To edit the template, we get the embedded console url, and navigate to Templates, find the template we want to edit, and the select edit. Is there a way to get a url to directly edit the template inside the embedded console? Something like: /templates/{0}/views/edit
Absolutely you can, do a Post Sender view but replace the envelope ID with the template ID and it will give you the URL to a session where you can modify the template.
Related
I am using social-auth-app-django to enable OAuth2 from google.
My application has two types of users and both are given an option to use google auth.
Now after these users register using google, I want to redirect to some page where they add additional information based on the type of user.
I am not able to figure out a way how to identify them based on the type of user. I am looking for a way where I can send extra parameter to google and then google return that parameter. This way I can identify the user type.
I am simply providing the following in django template.
<button>Google</button>
Edit:
One way I am thinking is of having two redirect URL configured in google. Then I can simply add function for these two redirect URL and my problem will be solved.
I am not able to figure out how to add that redirect URL in the request to google.
I have a Google Document that has a custom UI menu with an option to add a new page to the Doc and populate it with some data. I use this Doc as template for creating numerous other Docs for a single user via webapp.
So my user comes to my webapp, clicks to generate this Document, the document is created from the aforementioned template Doc (containing the bound script to allow the user to add more pages with additional data). The user clicks in the custom menu to create a new page, and before that chunk of code is executed, he gets the 'Authorization Required' screen. I've already prepared him for this so he know how to proceed - no big deal. he goes on to use the Document for his tasks and closes it when he's finished.
He now needs to generate a new Document from the same template and add additional pages just as before. Once again, he gets the 'Authorization Required' screen. Now he's thinking 'I just authorized this... what's gong on?' and is now confused.
Since these Docs are generated on the fly from within the webapp, I have no way to go in and authorize anything but the script in the template before the user gets to it. But is there really no way to authorize that script in the template doc and have it carry over to all the new docs created from it?
Instead of including the code as a bounded project publish it as an add-on. This way the user only will have to authorize the code once.
Related
How to avoid re-authorization request for a copied Google Spreadsheet + script
I'am on the page Email Templates of Wso2 identity server. I would like to select an other language than the only one proposed (English - united states).
I managed to make the "locality" claim required for each user registration, but that does not affect email templates. Does anyone know how to add another language for email templates ?
Thanks in advance
You need to create a new email template for the new language, under the desired email template type.
For an example, if you want to add a new email template for Account Confirmation, just create a new email template for account confirmation, under the type "AccountConfirmation".
Login to the wso2is management console.
Click Add email templates.
Click Add under email templates.
Select Add email template.
Create an email for the type AccountConfirmation and with the desired language.
Go back to the management console. Select List under email templates.
The newly added template will be visible for the desired language, for AccountConfirmation.
I want to use mailchimp to send mail when something happen automatically , so i use mailchimp restful api to do this:
1.Create a campaign with api /campaigns
2.Update the campaign with api /campaigns/{campaign_id}/content
3.Send the campaign
in this second step, i found the API /campaigns/{campaign_id}/content can update the campaign's content with plaintext or html easy with http body like this:
{"html": "<p>The HTML to use for the saved campaign<./p>"}
but i am not sure how to use a template to update the content.
In the API document(https://developer.mailchimp.com/documentation/mailchimp/reference/campaigns/content/#), if you want to use template update content, you need fill the template id and template sections, but how do i know the sections in a template?
I try to use the template api to get a template detail information, in the response, the section filed is empty array.
any suggestion? or give me example!
thank you guys
Regard to great developers
Not sure if you ever found an answer, but I am struggling with this API too. The sections can be retrieve from the GetDefaultContent API which will return an MailChimp Response with a sections object. That object, in turn, will have all the sections that you have specified in your template by name and their default content.
I am still trying to figure out the updating part, myself, but hope this helps a bit.
I want to support box cloud facility my blackberry 10 app,for this i'm using box rest api to implement this functionality. so using box rest oauth2.0 i able to get authorizedcode and then accessToken and RefreshToken but still not able to create a folder of my app to upload content to user's box account. So please suggest me how do i implement this.
Thanks,
Ankur
You should probably include a little of your code. Otherwise this question won't really help anyone else.
If you've made it through the authentication stage, then you're 99% of the way there. You can create a folder by doing a POST to https://api.box.com/folders with a JSON payload that provides the name and parent_id of the folder you want to create and the location you want to create it in.
From your code above, it looks like you're trying to send a POST request to https://api.box.com/2.0/folders/0
Folder creation requests should actually be POST'd to:
https://api.box.com/2.0/folders
Note, there isn't a 0 there. I understand that it's fairly intuitive to POST to the ID of the parent folder you desire, but this is how we handle this.
Your request body must indicate the parent folder like this:
var postData ={"name":"New Folder", "parent":{"id": "0"}};
Hope that helps!