"Synchronous" browsing -- make one user see what another one is doing [closed] - ajax

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I would like to implement a "guided" photo browsing. That is, when one web-site visitor chooses to be in the guided mode and another to be a guide, the former sees photos chosen by the latter.
This is similar to what Google Drive simultaneous editing looks like, when one user sees changes by another user in real time. So I was wondering if I could just use the same technology. Does anyone know how it is implemented? Also any comments on whether it would be suitable for me would be appreciated.

You can use a real time socket messaging like https://www.pubnub.com/
The user that wants to see the photos will subscribe to a channel where the messages will be sent. The message gets to the user immediately.
The application will read the message in JSON format. You can include the photo name/title as well as the URL. You will process the message and load the image.
Here is an example of how they implemented a stream of Hacker News articles:
https://www.pubnub.com/developers/data-streams/hacker-news-articles

Related

How can I add Google server side sign in authentication to my Golang web application? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 months ago.
Improve this question
My question may lack specifics but I just cant understand how the whole process should work.. How I should implement it? What are the ways? Any guidance is welcome.
I have followed official documentation, their guides but even if I get something to work I dont really know if I am doing the right thing as is the end result what I need?
I think I need server side in order to store the sessions and credentials to the database.
It is a side task in my school, I am also limited to using only Golangs standard packages.
Not sure, What exactly you are looking but few things i am mentioning which might help you.
Google Sign-In for server-side apps :
Implementing the one-time-code flow :
The Google Sign-In button provides both an access token and an authorization code. The code is a one-time code that your server can exchange with Google's servers for an access token.
Create a client ID and client secret
Include the Google platform library on your page
Initialize the GoogleAuth object
Add the sign-in button to your page
Sign in the user
Send the authorization code to the server
Exchange the authorization code for an access token
For better understanding refer here : https://developers.google.com/identity/sign-in/web/server-side-flow
and https://cloud.google.com/go/getting-started/authenticate-users-with-iap and https://skarlso.github.io/2016/06/12/google-signin-with-go/
In Golang we have this library : https://pkg.go.dev/golang.org/x/oauth2/google
This is the example you can try by your own : https://dev.to/douglasmakey/oauth2-example-with-go-3n8a

Youtube API v3 - Insert using internal Oauth consent screen gets locked as private [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I'm trying to use the YouTube Data API's Videos.insert endpoint using an internal OAuth consent screen since it's just for a console application I'm writing to combine and upload videos I have edited.
Every time I do this the video gets locked as private with an email saying:
your video has been locked as private. This is because it was
uploaded to YouTube using a third-party service that hasn't yet been
through our verification process.
It was my understanding that using an internal consent screen for my application would bypass this issue and the need for verification. Can someone explain to me what "internal" actually means here and how I would use the YouTube API correctly for my needs?
Also the option to verify the application is removed when you select "Internal", yet the issue still persists

Where to send email by good practice in MVC pattern [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 6 years ago.
Improve this question
What is the best practice for sending emails from MVC based platform ?
Should I rather send emails from controller or model ? What is the best practice ?
One opinion is that model should send emails, just to keep controller slimest possible, other opinion is that controller should send emails, because model shouldn't have access to services.
Thanks for contribution to this topic.
I'd be hard pressed to find a situation where it made more sense to send an email from the Model...
Without knowing the specifics of your architecture, I'd wager that the Controller should be the one to send emails, for two reasons:
As you mentioned, the model shouldn't have access to services
The email is most likely being sent as a result of some user interaction, which puts it squarely in the domain of the Controller.

Sage Pay integrate terminal payments in backend [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
We're using direct integration which works fine for the customer and they are correctly redirected to the 3D secure page for validation and enter the password if required by the backend. We want to take payment over the phone as well. Sage Pay offers terminal transaction within My Sage Pay page, but I couldn't see to find any documents that we can do same but from our backend. http://www.sagepay.co.uk/support/15/37/process-a-terminal-transaction
It's exactly the same as your ecommerce integration - all you need to do differently is specify AccountType=M in the transaction post. This will suppress 3D Secure checking. You will need a MOTO MID on your sagepay account, though.

Outsystems platform: getting FullContact details for a person [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I have been doing a work in outsystems platform.
My works is a recruitment application where you add candidates to your app with a curriculum. You then choose the best ones to schedule an interview with, and eventually you can hire them to your company. Well, I don't known if you guys really need to know what my app is about, or what it does but I can explain better or eventually show it if it helps with my problem.
Well what I want is:
- When I register a candidate, I add a name, an email address, and a phone number. With this email, Outsystems offers a widget that can find all networks referred to that person (by email), that widget (I am not sure if this is the correct name for this tool, maybe API is more correct) can be found in Logic and inside the folder called Dependencies, that widget is called FullContact. To use that API you must create a new action. I did it and I filled the mandatory parameters called Email with Candidate Email. I am not sure what to put in APIKey parameter, I tried a lot of things and when I publish and test it I always have the same error called 403 Forbidden. What I am doing wrong?
I am not sure if this question is supposed to be done here, if it is not just tell me and I can delete the question and search somewhere else.
what I have is this: app print
I am not sure what to put in APIkey, I saw an example and the person that did it added an assign and an ajax refresh. Do I need it to? And this is the error I get when I test the app enter link description here
I never worked with FullContact before but from some researches I learned the following:
Overview: The FullContact Developer APIs are used to manage and enhance contact information.
Authentication: All requests to all endpoints require you to specify your unique API key. The API Key is assigned to you by FullContact and is used to identify and authorize each request. Your API key should be kept private, and should never be displayed publicly.
To signup and get your free trial: https://portal.fullcontact.com/signup
Note: FullContact isn't free, you can only apply for a trial or pay.
Pricing: https://www.fullcontact.com/developer/pricing/
Where did you get that action from? Was it from the LinkedIn Connector perhaps? If so, you might be lacking authentication. Check the documentation from available in the sample eSpace.

Resources