How to create the login app using webservice in livecode? - web-services

I am building a LiveCode application but I am newer in livecode. Can anyone suggest me how to create login app using the webservice api in livecode or any tutorial link that I can reference? Thank a lot.

There is no web services API built into LiveCode as such, but it is very simple to access existing RESTful APIs. You can submit GET requests using the form put URL "http://apihost.com/document.html?name=value". You can submit PUT requests using the LiveCode post command: post argList to URL "http://apihost.com/document.html".
If you are interested in a tutorial, see this one I put together at http://livecode.byu.edu/internet/webServicesIntro.php

Related

How to intergarte react native front end with django backend

Post Method Used In ReactNative
Error raised
Forbidden: /api/login/
I created a user API using djangorest framework and it is functioning well, however i dont know how to add it to my react native front end for authentication. I would like users to login and the drf to authenticate them. Is there a tutorial i can follow, i tried to look at a few but they didnt work for me. I'm new to react native. Would appreciate elaborate answers and shared resources
Currently using expo cli and unable to fetch data from drf(django rest framework).
is there a way i can request my post method to use djangosessions for authentication instead of auth tokens
the method in the image only works if
'rest_framework.authentication.SessionAuthentication',
is disabled and this is used to get data in api so it cannot be excluded
welcome to ReactNative
You can use different libraries to handle an api request.
Take a look at axios:
https://github.com/axios/axios

Stripe integration with Django rest and Angular/Cli

I want to create a stripe payment integration using Django Rest Framework as backend and Angular/Cli as frontend. And also I want to confirm the payment using stripe webhooks. I could not able to find Angular documentation just for the only frontend. And also the Stripe docs are generally has written for flask and not for the rest framework. Any help will be appreciated. Thank you in advance.
I've found a library and some newer docs that I think will solve your issues: https://richnologies.gitbook.io/ngx-stripe/core-concepts/checkout
Using the ngx-stripe library as a wrapper, you can setup the publishable key on your front end. The library then offers a StripeService.
If you setup some custom endpoints on your backend to handle the dirty work (accept payments, create customers, etc), you can have then have the StripeService listen for the response and react accordingly (create a checkout session, display payment successful message, etc.)

Where should I make a python-twitter API call in my Django/React webapp

I'm creating a full stack web app using react, react-redux, and Django-rest, and I need to make an API call using the python-twitter api, then display the data from this request in my react frontend. The flow of control will be a user enters their twitter username in the frontend, which needs to trigger an API call using this username in the Django backend. Then the data from this call needs to be fed back into the React frontend using redux. Where should I be making this API call in the Django backend?
You can make authentication and configuration of the python-twitter in Django Backend. Then you can simply call the API's from the react web application. I have made for it. Here you go: python-twitter boiler-plate. Hope this helps :)

django, google app engine and google drive api

I'm trying to create a simple django project (website) that authenticates the user using OAuth2 and returns a list of files from my google drive account using the drive api v2.
the problem is that I can't get the authentication working, the exception is:
'WSGIRequest' object has no attribute 'redirect'
if someone has managed to get some application going using django mtv file structure get give me some references or a sample project please reply
The sample application can be accessed at: http://helloworldbyionut.appspot.com/home/
If you use app engine, easiest way to do oauth is to use oauth_required decorator. It does all the Oauth2 steps automatically.

How can I integrate Google Documents List Data API with coldfusion page?

Can someone please tell me the step that I should take to integrate google docs in .cfm page. It is a multi-user web application with single log-in , one username n password.
Thanks.
Try this free library at: http://cfgoogle.riaforge.org/ , read this post: http://www.coldfusionjedi.com/index.cfm/2007/12/8/Google-Docs-CFC
If you want to do it yourself without using the library above, you will need to learn how to consume RESTful services using the <cfhttp> tag, and construct and parse XML using <cfxml> and xmlParse().
This Yahoo guide introduces how to use CF to consume Yahoo's RESTful services: http://developer.yahoo.com/coldfusion/index.html