Using the DocuSign code-examples-csharp, you can export Room data to JSON. I need to batch export Room data using a C# console app without using the website. I'm unclear how to convert this web application to a console app. Are there examples of this somewhere?
First off, for a console app you will want to use JWT. The C# repo you can use JWT, so confirm this is working for you. With JWT there's no need for user to login.
You can then take the Auth Code from JWTAuth.cs and the example code from ExportDataFromRoom.cs and add them to your console app.
This should work if you also include the configuration information for auth.
We soon plan to add the Rooms API to the VS Extension that will make this even easier.
Related
I am using Firebase, and I want to be able to create a user, get his ID, and then create his profile data.
I can do this using Google.Cloud.Firestore, just the way we do it in Android. However, I want to do this from a C# web application.
I have not been able to find anything that creates an auth user that is callable from C#. How can I do this?
There's this FirebaseUI Widget in javascript which really gives a lot's of auth options out of the box (Google, phone, email/password, etc.), but I need to use my own interface (i.e., the interface required by my client).
There is no SDK for accessing Firebase Authentication from C#/ASP.NET web application.
But there is a REST API for Firebase Authentication that you can call from any platform that can make HTTPS calls, and which has a method to create a user account.
A quick search also lead me to this third-party library by Step Up Labs, but I have no experience with it.
I would like to edit a OneNote NoteBook which is stored in a SharePoint Document Libary via a C# Console Application (because i want to use it to batch input pages into a notebook form a Windows 7 machine).
Url looks like this:
http_s://COMPANY.sharepoint.com/sites/SITE_ID/Documents/_New%20Tool/NOTEBOOK_NAME?d=SOME_ID
So i found this documentation for the OneNote REST API: One Note Api, and i have two questions:
How do i get/request the Bearer Token? SDKs for this seem to be only available for Universal Windows Applications
How do i get the correct API URI? As it states here i need some IDs for the URI, but i do not know which ones to use.
If anyone has any "quick start code" to begin with or a blog post, that would be great. The official examples on GitHub do not seem to be fitting my needs...
If you want to get a Bearer token from a console app, here are your options:
Get a token from somewhere else (e.g. another app that gets tokens) and temporarily copy it to your console app
Display (via a web control/browser) the sign in flow and extract the token from it into the console app. The user has to see the sign in UI at least once - there is no way around this unfortunately. The best example I can find of this is the following: https://github.com/googlesamples/oauth-apps-for-windows/tree/master/OAuthConsoleApp. You'd just have to change the URLs/scopes/AppId.
I'd suggest going with (1) or a different route (windows universal app), but if you do need it to be a console app... you'll need to essentially show a web control/browser with the sign in URL, then parse the code out of it once the user has signed in (or have the user paste it in).
Once you have the bearer token, you can read our blog post on how to use FromUrl to extract/edit content from a site.
I have a cross platform app currently designed using xamarin forms but now need to use this to create a user profile for the user, using the information provided, for a website.
Are there any add ons or plugins for something like square space or wordpress which would allow me to upload a user program via a RESTful api or something along those lines?
Basically what are my options to transfer user data from a cross platform app to a web app so that my user can then log onto the web app and see all their information?
All you need is a database that can be accessed by both your web app and your mobile app. There are numerous services that would allow you to do this.
But if your web site is going to be a WordPress site (I have never looked into squarespace) then it already uses a MySql back end for data storage. I would imagine squarespace uses a database of some sort as well. You could then create RESTFul urls on that same server to send and request data and use whatever database system that your website is using. If you don't want to implement your own service code for sending and receiveing data that can be used by both your web app and your mobile app, then you could use some service like Azure, AWS, Apigee, etc. just for the database.
I'm trying to build an youtube based app, and I'm using version 3.0 of Youtube Data API, I did register the app in Google Cloud Console and I did obtain an API Key. After that I tried to test it in a console application in Visual Studio 2010, I used a WebClient to retrieve a video search using this URL
"https://www.googleapis.com/youtube/v3/search?part=snippet&q=YouTube+Data+API&type=video&key={MY API KEY}"
I learned this from here. I used both a Browser key and a Server key, but the server sends back an error saying the request is incorrect.
So can anyone point me to the error I'm making?
PS: I am trying to make a windows phone app, and before doing so I wanted to learn how to manipulate the Youtube API first, this is why I am testing in a console application
Make sure that the YouTube Data API is enabled in the Google Developer Console. It should look something like this:
The key you are looking for is the server key, which looks something like this:
(I've truncated my key for security purposes). I now copy and paste this into my browser window:
https://www.googleapis.com/youtube/v3/search?part=snippet&q=YouTube+Data+API&type=video&key=YOURKEYWOULDGOHERE
This works for me. Start here to verify that the key is working and that the API has been enabled correctly. I suggest using the API client, because some API calls will require an OAuth 2.0 access token, not the simple API key (search API requires regular simple API key).
I am creating Android Application for a school where teachers should be login to the android application and perform some activity on daily basis.
We have a complete existing web based solution for the same and now want to implement same in Android.
The application is developed in Asp.net and C#
To authenticate a user on android login, I have created a login API which takes username and password in the query string and in return the API return Json Data From That User.
example : www.yourdomain.com/authenticateuser.aspx?username=xxxx&pas=YYYYY
But I doubt whether its safe to send the data via query string.
Can anybody suggest a better possible way where it is not mandatory to send the data in Query String.
You can use Soap based web-service. I created a demo to consume Soap Web-service without KSoap Library.
Ref Link: SoapWithoutKSoap
You can use KSoap Library to create complex Soap Data Request.
I hope this can help you.
C# Web-Service: Demo and Demo1
UPDATE
Web Service Link will be something like this : http://123.456.789.012/Abhan/Abhan.asmx?op=JustTest (This is not working as I modified the IP Address)
In Browser, method name and passing parameter(s) information will be like something as attached image.
Thanks.
I'm using C# web services to autenticate users, send report data and get app updates.
You can get some exmaples in the web (C#):
http://msdn.microsoft.com/en-us/library/8wbhsy70%28v=vs.90%29.aspx
and ksoap2 for Android:
http://code.google.com/p/ksoap2-android/
But I also bought a SSL certificate to use https...