How to use R1Soft server backup manager API? - php

I've done research on R1Soft Server Backup Manager API through this link:
http://wiki.r1soft.com/display/ServerBackupManager/Use+the+Server+Backup+API
My questions are:
1. How can i do the available actions in the UI with the SBM API? How can i add a protected machine to SBM, for example, through the API?
2. How to use the php scripts mentioned in /apisamples?
3. How to use the classes mentioned in the url /apidoc?
I'll be really grateful if someone could help with these issues.

Related

Each user can connect their own google drive in laravel app

I've already setup a global google drive in my project where everyone is getting files from one google drive for which i had to setup keys in google console.
Now it is required to allow users to connect their own google drives. I just want it to be simpler so users do not have to do all the process on google console to get their keys to set it up.
Any guidance from seniors is much apprecaited.
I’d recommend starting by reading about how account authentication works using Google APIs client for PHP.
Given your issue description, I believe you can achieve the desired behavior by using a Service Account.
Quoting the article above:
Google APIs such as the Prediction API and Google Cloud Storage can act on behalf of your application without accessing user information. In these situations your application needs to prove its own identity to the API, but no user consent is necessary. Similarly, in enterprise scenarios, your application can request delegated access to some resources.
In case you do need to access sensitive user information from you application in a Workspace environment, then I’d recommend having a look into Domain-wide delegation.
In this section of the github repo readme, you can find an example on how to authenticate with Google backend using a service account credentials via the client.
On additional note, I’d also recommend adhering to the How to Ask guidelines in order for your questions to be properly answered by the community. If you could also provide a minimal reproducible scenario as well as the code used and which difficulties you had with it would greatly help and improve your chances to get a meaningful answer in the future.

Create a course in moodle using php

I have been a searching a lot on this
I want to create a course using Web service API of moodle.
Things I understood so far are
There is a function named core_course_create_courses
Need to create a access token
I have a code which uses curl class which I dont know how to configure on my server(godaddy domain) hosting
Please someone have done this post code or suggest me some tutorial to follow.
Enable web services in Moodle - https://docs.moodle.org/30/en/Using_web_services
Then read through these instructions for creating a client - https://docs.moodle.org/dev/Creating_a_web_service_client
There is a php example here - https://github.com/moodlehq/sample-ws-clients/tree/master/PHP-REST

iOS/Android application with server API's to pass information

I'm working on project for iOS/ Android application that allow user to Register/Login and than create/share and store files to the server and share it with other users.
To meet this purpose i been following this tutorial: http://www.raywenderlich.com/2941/how-to-write-a-simple-phpmysql-web-service-for-an-ios-app but i found its very basic and i need more information before i start working on it.
My question is, how to create an application for example like Path: https://path.com or instagram, that allow apps to sync with server using API's and pass data between server, phone and users without offering Website to users?
Is there any pre-built open source php/mysql API's that we can use for this purpose?
Any brief tutorial that explain steps to do this (since until now i use to work on basic iOS app and need not require any interaction to server and stuff)?
In project im using php/mysql, in my research i found people also advice to use AFnetworking (http://afnetworking.com/) to replace stranded url fetching, any opinion on that?
I'm hoping to have great discussion on this question since there is lot of questions out there on this topic but non have full descriptive answers!
you can create our own server using tomcat and get the path that act as url for you..and there are many third party framework available for parsing or in iphone they have there own using NSJSONSerialization.you can read the detail from this link.
http://developer.apple.com/library/ios/#documentation/Foundation/Reference/NSJSONSerialization_Class/Reference/Reference.html

Extracting svn information from Jira

Is it possible to extract svn information (commits etc.) from Jira via its api (Soap, Rest). I have Jira Subversion plugin enabled and it shows information about commits, but I don't know how to extract this information calling the api methods.
This is a very interesting question. I do not know for any API call and the SubversionPlugin Documentation doesn't suggest one. But you could always get direct access to a read-only copy of your JIRA instance's DB or query it using the API.
Your best options is to try posting a question on the Atlassian answers site or better yet creating a support request.
The thing is that if there is no API currently, they could be developing one right now and Atlassian may connect you with the developers so that they can give you further information.
They may even provide you with some early-access solution. I know this because we've used this option at the company I currently work at, but with the Tempo plugin. Hope this helped.

How do we setup oAuth server?

I want oAuth verification process for a mobile application.For that i need to setup an oAuth server which listens to the requests and grant the access tokens.How do i set this up?I didnt found any relevant help on net.Please let me know.Also it will be good if it could be done using CakePHP
Regards
Himanshu Sharma
You would need an OAuth library for PHP that implements an OAuth service provider.
There are PECL and PEAR OAuth libraries, but my personal testimony is oauth-php as its simpler. I implemented both a server and client with it.
I cant comment on writing a service provider in Cake.
Updates based on OP's comments
Copy that directory to your PHP application to "install" it. You would need only CURL support from your host. There are no other prerequisites from the part of your host.
I did these steps to write an OAuth provider with oauth-php, do try these, google it and ask new questions when you get stuck.
read illustrated guides on how OAuth works
Studied relevant chapters from http://oauth.net/core/1.0a/ (try this order: 3,4, appendix,6 and 7 to start with)
read the example files included with the library, and see the how-tos in site's pages
hack those files and build it up your application

Categories