Jump to content

Froggy: Market Place Push/Pull API Application for Developers


CodingJungle

Recommended Posts

%7Boption%7D



File Name: Froggy: Market Place Push/Pull API Application for Developers

File Submitter: CodingJungle

File Submitted: 10 Jul 2012

File Category: Utilities

Supported Versions: IP.Board 3.2.x, IP.Board 3.3.x, IP.Board 3.4.x



This app is very simple and made only FOR DEVELOPERS, if you are not a developer and do not have any PAID APPS, this app is not for you and will be utterly useless.

what this app does:

accepts push notification from the marketplace api. (so you must have requested and gained access to the market place api).

this app will recieve the push notification, add it to a local database, that can be reviewed in your acp under other apps->froggy->overview.

can also do a pull of previous purchases from the market place.


Why would a developer need this app?

I am currently working on a project for my site, that can make use of this information, for clients who have bought apps here, and then have registered on my site. I am just providing the basic tools for any developer wishing to sync their marketplaces or wanting to do something "extra" for members who have purchased from IPB marketplace.

Right now it only accepts the push notifications, I will in future releases, as I do more work for my other project, will include the ability to pull this information from the marketplace, as well as "sync" your purchase list from your marketplace (if you have one), to IPB's. (you will need to verify that the email address and or user names of the members are identical on both sites before this would be possible).


All the information this application gathers, can be found in this documentation for "push":

http://community.inv...rketplace-apis/

If you have suggestions you like to make to improve this app, or would like to contribute to the development of this application, feel free to contact me on skype/email/private message.

Thanks,
Coding Jungle.

FAQ

1. Why is it called Froggy?

I've grown weary of all the "clinical" names i've used and seen of late for applications/hooks/mods/etc, wanted something a bit different :smile:


NEWS LINK

How To: use froggy's news items feature for your application
How To: use froggy's version check for applications

After much deliberation, I have decided to release froggy under a permissive license.

http://www.dbad-license.org/

enjoy.



here to download this file

Link to comment
Share on other sites

  • 3 weeks later...

Downloaded and installed :)

Does this import past purchases? I suppose this'll use the Pull API for that? Would be nice to manage the purchases even past purchases..

Feature request: Can we have a button on "Overview" page which does a manual pull of purchases?

Link to comment
Share on other sites


yeah this is a feature i'm adding, haven't had time to integrate the features from my other project, back into this one (have had a bad stomach bug, and busy with another project as well). I will try to get the updates out for froggy in the next week or so.




Great to hear! Thanks :smile:

(Get well soon!)
Link to comment
Share on other sites

Just another request (I know you're busy).. any way to import purchases into Nexus via the API? So you see they've bought it from the IPS Marketplace, and want them to be able to access from your own site, any way to add a button "Generate purchase in Nexus" ?

That member would have to be a member of your site as well as IPS though, so I'm not sure.. maybe a check to show if the member is a member both at your site and IPS, a button shows on the row in Froggy "Generate Purchase and Mark as Paid" for that customer.

Actually, now that I think about it, it could be as simple as a check to see if the email address passed by the API to Froggy exists in your members database, and if it does, show the button. Where the button leads to is a different story however.

Link to comment
Share on other sites

it might seem like i haven't done anything with this as of late, but i assure you updates are coming to it, when, that i can not say atm :) (working on another project and it hasn't left me with a lot of free time).

I'll get the updates i've been working on, back ported to froggy as soon as i can :)

Link to comment
Share on other sites

  • 4 weeks later...
  • 3 weeks later...
  • 4 weeks later...

I'm currently working on froggy 2.0:

new features:

sending email to members.

topic creation to specific forum upon receipt from a push (thanks to mikey)

purchaser member creation upon request.

use the pull api (grab previous purchases from IPB).

select your own colors for purchase/renew/expiration for overview.


improvements:

switched to unix timestamp for date.

language strings.

will now store purchase id since IPS market now allows multiple purchases of item from same member.

there are other things that i've probably missed. :)

Link to comment
Share on other sites

2.0.0 is out, see the above post and/or changelog for all new features/improvements.

on pull's from the market place, the pull api does not include the user name, and the only ways i know of getting it till they change it, might be frowned upon by IPS, so for now, it will just put N/A for username when a pull is done, push continues as before with a few minor back end changes.

Link to comment
Share on other sites

I was just about to ask about the Username pull lol But I see that you have already posted about it lol smile.png So will there be a way of getting the Username pulled sometime in the near future for this wonderful mod? smile.png

-Don smile.png

as of right now, there is no "good" way to get it, so till the pull api changes to include it, the best i can do is just mark it as "N/A". I commented on a post about it, and a few people have liked it, hoping that would encourage its addition.

Link to comment
Share on other sites

  • 2 weeks later...

Froggy 2.1.0 scheduled for release:

new features:

news feed for your application:

add a news feed to your application with the help of froggy. Add news links for your application in froggy, parse them out in your application. News feeds can be generated in json, serialized array, or xml. (will include a way to get the news feed to your app and a basic way to parse it and insert it into your application).

Version update check:

add a version check url for your application, in the overview section of it, or the update url in the applications settings, works for hooks as well. Keep your clients up to date with the latest version :).

Show Only:

this is added to the froggy purchases overview section, show only 1 of your applications at a time, to browse thru the purchase history.

Search:

search for client by email, will return a list of their purchases.

Changes:

moved purchase from overview to their own section, and using the overview for typical overview stuff now.

Will release later today at the earliest, baring any unforeseen problems.

Link to comment
Share on other sites

Hey CodingJungle,

You have an error in your my_app_tables.php file:

CREATE TABLE ibf_IF NOT EXISTS `cjfroggy_version` (

cjfroggy_ver_id int(255) NOT NULL AUTO_INCREMENT,

cjfroggy_ver_title varchar(255) NOT NULL,

cjfroggy_ver_min_ipb int(255) NOT NULL,

cjfroggy_ver_max_ipb int(255) NOT NULL,

cjfroggy_ver_curr_app int(255) NOT NULL,

cjfroggy_ver_update_url text NOT NULL,

cjfroggy_ver_app_key varchar(255) NOT NULL,

PRIMARY KEY (`cjfroggy_ver_id`)

) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=0 ;

Note line 1: you have "ibf_" on there that needs to be removed.

-Don smile.png

EDIT: ACP Section -> Version check for apps has text "There are currently no news Items." when check versions.

Link to comment
Share on other sites

Hey CodingJungle,

You have an error in your my_app_tables.php file:

CREATE TABLE ibf_IF NOT EXISTS `cjfroggy_version` (
cjfroggy_ver_id int(255) NOT NULL AUTO_INCREMENT,
cjfroggy_ver_title varchar(255) NOT NULL,
cjfroggy_ver_min_ipb int(255) NOT NULL,
cjfroggy_ver_max_ipb int(255) NOT NULL,
cjfroggy_ver_curr_app int(255) NOT NULL,
cjfroggy_ver_update_url text NOT NULL,
cjfroggy_ver_app_key varchar(255) NOT NULL,
PRIMARY KEY (`cjfroggy_ver_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=0 ;

Note line 1: you have "ibf_" on there that needs to be removed.

-Don :smile:

EDIT: ACP Section -> Version check for apps has text "There are currently no news Items." when check versions.

where are you seeing the sql problem? i've looked in the sql files for both the install and the updates, and i don't see ibf_ any where in them

mysql_updates.php:

$SQL[] = "CREATE TABLE cjfroggy_news (
  cjfroggy_news_id int(255) NOT NULL AUTO_INCREMENT,
  cjfroggy_news_title varchar(255) NOT NULL,
  cjfroggy_news_url varchar(255) NOT NULL,
  cjfroggy_news_app_key varchar(255) NOT NULL,
  cjfroggy_news_ordered int(255) NOT NULL,
  cjfroggy_news_published int(1) NOT NULL DEFAULT '1',
  PRIMARY KEY (`cjfroggy_news_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=0;";

$SQL[] = "CREATE TABLE IF NOT EXISTS `cjfroggy_version` (
  cjfroggy_ver_id int(255) NOT NULL AUTO_INCREMENT,
  cjfroggy_ver_title varchar(255) NOT NULL,
  cjfroggy_ver_min_ipb int(255) NOT NULL,
  cjfroggy_ver_max_ipb int(255) NOT NULL,
  cjfroggy_ver_curr_app int(255) NOT NULL,
  cjfroggy_ver_update_url text NOT NULL,
  cjfroggy_ver_app_key varchar(255) NOT NULL,
  PRIMARY KEY (`cjfroggy_ver_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=0 ;";

and froggy_mysql_tables.php:

$TABLE[] = "CREATE TABLE cj_push_api (
  cj_push_id int(255) NOT NULL AUTO_INCREMENT,
  cust_id int(25) NOT NULL,
  cust_email varchar(255) NOT NULL,
  cust_name varchar(60) NOT NULL,
  file int(30) NOT NULL,
  action varchar(10) NOT NULL,
  purchase_date timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  purchase_id varchar(255) NOT NULL DEFAULT '0',
  purchase_date_unix int(255) NOT NULL DEFAULT '0',
  hash_remove varchar(255) NOT NULL,
  creation_date int(255) NOT NULL,
  PRIMARY KEY (cj_push_id)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=0;";

$TABLE[] = "CREATE TABLE cjfroggy_news (
  cjfroggy_news_id int(255) NOT NULL AUTO_INCREMENT,
  cjfroggy_news_title varchar(255) NOT NULL,
  cjfroggy_news_url varchar(255) NOT NULL,
  cjfroggy_news_app_key varchar(255) NOT NULL,
  cjfroggy_news_ordered int(255) NOT NULL,
  cjfroggy_news_published int(1) NOT NULL DEFAULT '1',
  PRIMARY KEY (`cjfroggy_news_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=0;";

$TABLE[] = "CREATE TABLE IF NOT EXISTS `cjfroggy_version` (
  cjfroggy_ver_id int(255) NOT NULL AUTO_INCREMENT,
  cjfroggy_ver_title varchar(255) NOT NULL,
  cjfroggy_ver_min_ipb int(255) NOT NULL,
  cjfroggy_ver_max_ipb int(255) NOT NULL,
  cjfroggy_ver_curr_app int(255) NOT NULL,
  cjfroggy_ver_update_url text NOT NULL,
  cjfroggy_ver_app_key varchar(255) NOT NULL,
  PRIMARY KEY (`cjfroggy_ver_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=0 ;";

I'll get the topic posting problem fixed and push out a update later.

Link to comment
Share on other sites

updated, language bit fixed in version check, and topic posting should work now. if not replace the topic content in ck editor mode with this:

<p><strong>File Purchased:</strong> <a class="bbc_url" href="http://community.invisionpower.com/index.php?app=downloads&amp;showfile={%file_id%}" rel="nofollow external" title="External link">{%file%}</a><br />
<strong>File Purchaser:</strong> {%buyer_name%} / {%buyer_email%}</p>
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...