Google YouTube API vb.net references - vb.net

I am new to the Google oAuth and YouTube APIs. I am trying to follow the examples at https://developers.google.com/youtube/v3/code_samples/dotnet - specifically the Upload Video example. I am working with VB.NET - visual studio 2013. I have added the libraries via nuget. When I add the import statements, I am getting Namespace or Type cannot be found for Google.Apis.Auth.OAuth2, Google.Apis.YouTube.v3 and Google.Apis.YouTube.v3.Data. Google.Apis.Services, Upload and Util.Store work fine. I suspect I am missing a reference somewhere, but I cannot find what to look for or add. My project is in .Net 4.5.1. I have references to Google.Apis, Google.Apis.Core and Google.Apis.PlatformServices. From what I can tell, I need a reference to Google.Apis.Auth.OAuth2, but I cannot find that.

I finally found the libraries on nuget to reference. Look for Google APIs Auth Client Library and Google.Apis.YouTube.vs Client Library in nuget.

Related

Is it possible to create custom GraphServiceClient in UiPath? (and how)

We are needing additional Office 365 functionality that is not provided by the standard Office 365 package by UiPath (such as marking emails as read/not read, changing the subject lines of emails already in a shared mailbox, etc).
Having looked through Microsoft documentation, it should be possible via code - but this doesn't seem to work in UiPath.
https://learn.microsoft.com/en-us/graph/sdks/choose-authentication-providers?tabs=CS
UiPath moans that it needs netstandard version 2.0.0.0 to create a new GraphServiceClient - however, I don't think that I'm able to add that assembly to the project.
Does anyone know how we can create the custom graph connection in UiPath?
As I don't want to copy the doc page, all you need is written on Github (Microsoft Graph .NET Client Library).
The Microsoft Graph .NET Client Library targets .NetStandard 2.0 and
.Net Framework 4.6.2.
To install the client library via NuGet:
Search for Microsoft.Graph in the NuGet Library, or
Type Install-Package Microsoft.Graph into the Package Manager Console.
For UiPath setup, use your link. Should work in the Invoke code block.

Xamarin Forms code sharing

I'm working on a xamarin forms (PCL) project (A basic customer care chat app which is meant to run on Android and iOS only) that has just two xaml pages, custom renderers and few dependencies. This project is meant to be implemented into another existing project (which I don't have access to its source code) such that an action would be binded to a button on the existing app to show a page on my own project.
There is need for me to share my chat project with my client's developer but without exposing my source codes, perhaps compiling to dll or nuget package that would be added to the existing project to access my project's functions and pages. I have searched through the xamarin forum and here on stackoverflow but can't seem to lay my hands on a solution.
Is this possible at all? If yes, what am I missing? If no, is there any better option to use?
Please do note that the chat app completely done, so I'm hoping perhaps there's a way I could directly convert the project to a Nuget package.
Thanks in anticipation!
If the host application is a Xamarin Forms one:
-Move your cross platform shared code into a PCL or .Net Standard (ContentPages, ContentViews, Classes).
-Move your Renderers and platform specific code to Android and iOs Class Libraries.
Your client will have to reference your first assembly (dll) in their XF assembly in order to instantiate/manipulate your views/classes and platform specifics one on their Back-end side (taking into account your renderers, effects, etc ...)
A lot of Xamarin Controls Libraries Open Source hosted on Github are working like that. For example this one: https://github.com/jamesmontemagno/Xamarin.Forms-PullToRefreshLayout
If the host application is a native application, take a look into Xamarin forms embedding
Finally, I seem to solve the problem by enabling visual studio to build Nuget packages for the chat app project (summing up to 3 nuget packages) on project build.
Thanks #Rudy Spano and #Micah Switzer for your contributions

NHibernateIntegrationFacility configuration

I am trying to use NHibernateIntegration Facility by configuring using code, not XML. But couldn't find any reference code over the web. Can you please post any sample or provide reference.
Thanks,
Try to use the Fluent NHibernate API. I am developing using it a year ago and it is very good.
You can download the dll by NuGet in visual studio.
Link:
http://www.nuget.org/packages/FluentNhibernate

The type initializer for 'PayPal.Manager.ConfigManager' threw an exception >Paypal SetExpressCheckout

for some reason I am getting an error "cannot read config file" when trying to set the SetExpressCheckout, I have copied across the web config settings, but for some reason I cannot read them, the error isn't very helpful other than what I have mentioned.
I am using mvc4, and to be honest I have had a problem reading the web.config in the past..
any suggestions would be much appreciated.
Just looked at this... thought it might help someone. Looked at the Inner Exception, saw it was looking for the Log4Net dll... so I gave it to the app and hey ho. It worked.
I had a similar problem and ended up getting both the core and merchant sdk source from GitHub. Change the SpecificVersion=True to False for the log4net reference in the core sdk and re-build it. I also re-targeted both for .net 4.0 so I re-built the merchant sdk with a reference to the new core sdk. Import both of these new dll's to your main project and you should be good to go. I had to change the config in 1 place for the section handler.
<section name="paypal" type="PayPal.Manager.SDKConfigHandler, PayPalCoreSDK"/>
since the Assembly name does not have the underscores if built from source (vs downloaded or added via NuGet).
A bit of explanation:
I was already using log4net version 1.11 before adding the sdk. The sdk was looking specifically for version 1.10. these 2 versions have a different public key, so 'simple' binding redirection won't work. If you have a reference to a different version of log4net (for example using ninject logging extensions requires min version 2.11 so these 2 ninject and the paypal sdk, are incompatible off the shelf).
so the root of the problem was actually caused by the dll version issues but manifested as a Configuration exception. check the inner exceptions and see what you get.
ok, just a quick update, I think it must be something to do with MVC, I have created a new empty asp project, copied the sdk config details across, created the same function call as I have in my mvc code, and called it from a simple asp button... and it works ??
does anyone have any ideas why I am getting an error in an mvc4 project, and not in a simple asp project ??
any help or ideas would be much appreciated.

How to import .NET libraries into project? (Specifically the Amazon API libraries for Amazon MWS)

I'm relatively new when it comes to working with .NET and how it works with libraries. I'm trying to use the Amazon MWS libraries for a project but can't figure out how to configure them properly. Any advice for a newbie?
Thanks.
If what you're missing is a reference to the library, then all you have to do is a right click on the project in the right-pane, and choose "add reference".