I have struggled with google's php library, the latest version of which is available on their own website. While the simple google plus example they provide works fine (it's a basic login with GET features), there is no way to add a moment activity via app in php - at least not for me.
Their own example isn't working (the example can be retrievd in the library: examples/moments/simple.php)
Someone provides an answer here but the button demo they provide isn't working either if I press (authorization is fine, posting produces no action.
Does anyone have a suggestion on how to change their own php file so to make it work? I tired removing all the code and resetting it to the basic action: at least I am not getting oauth or php errors, but the file produces no action.
I understand that posting moments in php is not currently supported, but I have a web app and android implementation wouldn't work for me I think.
At the moment you need to get the library from the trunk, you can find instructions here.
This gist documents how to request permission and write activities.
The old moments api has been deprecated and those samples are for the old API, I'll remove them from the codebase as soon as possible. Thanks for raising this question!
Related
I've been implementing PHP getstream.io support for our app, found that the official PHP library is lacking compared to Python one.
Checking official api refs on getstream.io site - seems they are not full by any means as well.
For example - we have 'stats/follow/' endpoint, allowing to get following/followers counts easily, quite a common thing to use for user profiles. I found it by reading python lib. But it is not documented at all on the official site, there are no mentions it even exists.
Am I looking for the full api refs in the wrong place (on getstream.io official site)?
Maybe there are a lot of other useful endpoints I am not aware of, as they are not present in the official refs?
stats/follow is a recent addition (beta right now) which isn't added to PHP SDK at the moment. PRs are always welcome (good to imitate Python SDK). Anyway, it will be added though, just a matter of time.
REST docs will be auto generated in near future.
Been trying to figure this out all week. Intuit doesn't officially have a PHP sdk, but they link to one that hasn't been touched in 2 years.
I have followed all the steps here:
https://developer.intuit.com/docs/0020_customeraccountdata/007_firstrequest
And that all works fine. I can use the API Explorer to begin pulling information.
My question is how do I use this outside the Explorer?
Not sure how to use the .p12 file and when I use the linked SDK, I continually get Error 400 Code:MissingRequiredField,Type:SYSTEM.
Quite lost on which direction I need to go to tackle this. New to SAML.
Please help me find the best way to use this API with PHP.
Thanks
I need to develop an module that interact with TFS for our internal office application, but the project is in php, i have done searching a lot, but could not find a sdk or api in php that could do the following.
listing the work items for a tfs user
creating / modifying work items.
View work item details and get attachments
modifying work items
can anybody suggest an api / sdk that could do the above said actions,
note: we are not interacting with Visual Studio Online, we are using hosted tfs in our own premises.
thanks in advance.
Use the Java SDK for TFS and the PHP/Java Bridge and then try something like this (psuedo code only)
<?php
require_once("java/Java.inc");
$tfsTPC=new java("com.microsoft.tfs.core.TFSTeamProjectCollection","http://tfs:8080/tfs/DefaultCollection");
$projects = $tfsTPC->getWorkItemClient()->getProjects();
?>
P.S. My PHP knowledge died a long time ago, so I'm not sure if the sample code is quite right, but hopefully you get the idea.
Also, even though it's the Java SDK you're using you should be able to follow all the C# samples since the SDK methods are almost identical between the .NET and Java SDKs
I'm implementing an OpenID consumer, and utilizing the JanRain classes (2.2.2) is failing out of the box. Specifically, I'm seeing the following symptoms:
The consumer isn't able to correctly identify the openid_mode parameter
The consumer has trouble finding the return_to variable
I'm fairly certain CakePHP is causing the issue, as the sample code in the JanRain consumer example works fine, but it fails as soon as it's placed within a CakePHP controller.
I have noticed that CakePHP's dispatcher sets a $_GET[url] parameter that confuses the JanRain validation, but I've been able to get around that one (by unsetting $_GET['url']). I'm hoping someone out there may have a short list of tips/techniques to get CakePHP to play friendlier with the JanRain code.
I'm sorry I don't quite understand your problem, but since I am successfully using the JanRain plugin for quite a while now, here is at least one tip I remember from when I set it up : Try lowering your CakePHP security setting from "high" to "medium" or even "low", at least for testing purposes.
If it doesn't help, and you think you know what part of your code is causing the issue, let me now, I'll provide you with my sources.
Try the OpenID component for CakePHP linked here which is regularly updated and works
Ensure you have lib CURL and openssl extensions enabled
I am working on a Moodle project and I have downloaded and installed the latest build(1.9) on my system. I'm using this framework for the very first time so presently trying to get familiar with the environment and the documentation.
My need is to embed an iCal kinda calendar on Moodle's front page using the PHP iCalendar API. I downloaded the latest version of PHP iCalendar but kinda needed some help figuring things out further. I am trying to build a plug-in sorta thing which allows you to put a custom-built calendar (in place of the regular Moodle calendar) on your Moodle site.
Has anyone ever worked with something similar before? Any suggestions?
On moodle.org, there is a change request for this feature in the Moodle Tracker that you might want to follow:
Calendar: IMPORT or Subscribe to iCal feed into Moodle calendar
.
You could try looking at the module development text. It could be fairly easy to do, but I haven't really worked with moodle that much. http://moodle.org/
This feature is currently a feature request in Moodle, but may take several version before it comes it becomes a core feature see the feature request here http://tracker.moodle.org/browse/MDL-16660.
The current workaround seems to be to use one of the commonly avaliable web based calendar system to import your ical feed and then inserting a html snippet into moodle to view it.
The obvious example would be to use a public Google calendar to do this but there is also:
http://assignaday.4teachers.org/
http://www.localendar.com/elsie
Reference:
http://moodle.org/mod/forum/discuss.php?d=82855