Hi all,
I am close to completing my hypeGraph plugin, which is a fully RESTful API provider for Elgg.
I am currently working on defining more consumption endpoints, and I would like to find out if there are any use cases that I should take into consideration. I believe this will be a good starting point for mobile Elgg clients, as well as outsourcing more of the rendering work to the browser.
Ultimately, I am planning to build a JS and PHP clients to go with the plugin, as well as a GUI for testing.
https://github.com/hypeJunction/hypeGraph
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by Raül Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
I am trying to use the hypegraph plugin but I keep getting a white screen when I activate it. Also have Hypeapps installed and activated before hypegraph
Check your logs. Most likely your PHP version is below 5.5
Hi Ismayil,
Thanks for your plugin i have below issues on the plugin can you please help.
1. I am not able to understand the get and post of your API. can you please provide some example
how to differentiate url to post a blog and get list of blog, how to define GET and POST can you please provide full URL it will help.
how to get json of blogs. When i hit www.mysite.com/services/api/graph/site/blogs?api_key=0459399c5d0e97d82bc1466ccf9b7a6aff5b3041
this returns a elgg page instead of json. i need Json. i am not able to prepare an json URL.
unable to create blog with API for eg. this URL www.mysite.com/services/api/graph/ue38/blogs?title=title&description=description&excerpt=excerpt&status=published&comments_on=On&tags=tags&access_id=2&api_key=0459399c5d0e97d82bc1466ccf9b7a6aff5b3041,
this only shows list of blog of user with guid 38 i am not able to create any blog using this URL.
I want to add comments on the blog which i am showing on my Android\IOS app. but the problem is i am not able to understand how to use get post please help.
Currently i am using elgg default API which does not support get ,post :( . so i want to use your plugin below is the example of my current URL in my app "www.test.com/mysite/blog_hindi/get_latest_posts" this url in my app. this url return the list of the blogs as Json. now i want user should comments on my blogs by mobile device.
It will be helpfull if you please share the example URL. i tried the URL from the documation but i am not able to create a full URL by the documentation.
Can some one please help. from last 6 hrs i am trying so hard but nothing able to understand :( :( :( .. Ismayil code is to hard to understand :( :( :(
I found in DB there is "get" stored for the URL and header parameter is html that's why i am getting return as page not as json. I can change the value directly in the DB. but i don't think this is the right way to use this API. what i am missing. can some one help i am going to Faint :( :( :( ..
First read about RESTful API and HTTP request types. Then read the documentation in more detail ( I have spend 2 days putting it all together). It says in the docs that you need to set Accept header to get a json response. The Graph is not designed to work as an Elgg resource, rather as a data provider. You need to build your own HTTP client, use Guzzle or something similar in PHP, there are also JavaScript clients out there (I assume you are using a phonegap). GET and POST URLs can be identical, the difference is in the request headers.
Hi Ismayil,
Thanks for your reply. i will read more in details about API . I am not using Phonegap . I am using android and IOS to call my webserive. and i am calling this webserive by "http://square.github.io/retrofit/" by HTTP JAVA method . Its pure Java. I am not very sure how Guzzle will help me. still i will read it and ask you if i need more help. thanks for your time for replying. :)
I haven't done any work in Java, but Google is your friend. http://www.mkyong.com/java/how-to-send-http-request-getpost-in-java/.
possibility to support php 5.4? godaddy supports only up to 5.4
- Previous
- 1
- 2
- Next
You must log in to post replies.