gives ability to custom url shorten provider#14
gives ability to custom url shorten provider#14wilsonlmh wants to merge 20 commits intoFmstrat:masterfrom
Conversation
config: customUrl : the url will wrap with sprintf(), use %s as the source url, example http://shorten_server/add?url=%s customJSON : extract value in JSON for returning, example: ->response->shortedURL note: '->' is required for array, this gives ability to access root level of JSON.
long-en the var name in eval() to improve security hahaha
|
I tested with some code correction, however it doesn't works. |
|
OK I figure out this, but something other happen: an error from log: |
|
OK, the problem is about cross-origin now
|
|
OK, I finally make it works! I will also publish my shorten site and api soon. |
It's a small upgrade gives ability to custom url shorten provider with following config:
config:
customUrl : the url will wrap with sprintf(), use %s as the source url, example http://shorten_server/add?url=%s
customJSON : extract value in JSON for returning, example: ->response->shortedURL note: '->' is required for array, this gives ability to access root level of JSON.
It use curl on server side to query the provider(it good for local server, more secure). I haven't test it yet bcoz im still working on my shorten script. However I don't have experience on writing owncloud plugin. Can you please help to do a fast review on it? Thanks!