ActionScript 3.0 :: How To Make Post Request With Tumblr API

Feb 2, 2010

So I'm trying to code an AIR widget for Tumblr. Before I actually start working on the widget, I wanted to play around with AS3 and the Tumblr API to do simple things, like reading and writing posts, editing posts etc. I got reading posts working, but when it comes to creating posts I run into an unknown brickwall. Here's the instructions from Tumblr's API doc on making a POST request:

The Write API is a very simple HTTP interface. To create a post, send a POST request to [URL] with the following parameters:
Email - Your account's email address.
password - Your account's password.
type - The post type.

These are the valid values for the type parameter, with the associated content parameters that each type supports:
Regular - Requires at least one:
Title
Body (HTML allowed)
[URL]

And here's my AS3 code:
import flash.net.*
gogo.buttonMode = true; // gogo is the instance name of a MC on the stage
gogo.addEventListener(MouseEvent.MOUSE_DOWN, go);
function go(e:MouseEvent):void{
var variables:URLVariables = new URLVariables();
[Code] .....
And for the life of me, no matter how simple I make this code, I cannot get it to work.

View 4 Replies


Similar Posts:


Flex :: Make A POST Request With Parameters And An Attached File?

Apr 23, 2010

Make a POST request with parameters and an attached file

View 1 Replies

Php :: Send POST Request With X-amf (Flash) Request Header?

Apr 13, 2011

I'm trying to reproduce a POST request that was captured from WireShark using PHP. This POST request was sent by a Flash (.swf) object, so it's a little bit complicated in configuring the header.It does not print out anything in the end, so there must be something wrong with PHP code that I could not see.Here is what WireShark captured:

POST /engine/ HTTP/1.1

Host: abcdef.com

User-Agent: Mozilla/5.0 (X11; Linux i686; rv:2.0) Gecko/20100101 Firefox/4.0

Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8[code]....

The result is a blank page instead of response from server.

View 1 Replies

Http :: Flash - Make A POST Request From Within Flash To Processing Php Page?

Nov 6, 2009

I basically have a form inside of Flash that I need to submit to a server-side processing page, which will then return either json or xml telling if it succeeded or not ( json, xml I suppose ). My version of Flash is CS4 and I'm wondering if there are any libraries or frameworks I can use to accomplish this.

View 2 Replies

ActionScript 3.0 :: POST Request In New Window?

Jan 29, 2011

What i want to do is open a new browser window, (preferably a pop-up window) and have it display results based on POST data sent from flash. Like a form that targets _blank or something.

View 1 Replies

As3 :: Flex - Pass Along An Incoming Xml Post Request?

Jun 15, 2011

I need to pass along an incoming xml post request using as3? Is there a simple way to just pass that request through an as3 application? I don't want to do anything with the request other than send it along to its destination.

View 1 Replies

Flash - Load A XML Via POST-request In Flex?

Feb 17, 2012

I'm trying to load a XML via POST-request in Flex:

var request:URLRequest = new URLRequest('res/unhasher.xml');
request.method = URLRequestMethod.POST;
loader = new URLLoader();
loader.load(request);

But in Firebug I see that my file is loaded through GET.

Request header:

GET res/unhasher.xml HTTP/1.1
Host: bla-bla-bla.com
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0.1) Gecko/20100101 Firefox/10.0.1

[code]....

How to make POST requests from Flash/Flex?

View 2 Replies

ActionScript 3.0 :: Making A POST Request To A Script?

Feb 12, 2009

I would like to make a simple call to a script passing the data via http POST.In particular I would like to pass two parameters:

1) a file

2) a string containing the name of the file

How can I do that ?

View 0 Replies

ActionScript 3.0 :: How To Pass Array Via Post Request

Jul 31, 2009

When i crate flash mail list I past the variables via an object

Code:
variables.name = formName;
variables.mail = formMail;
etc.

View 2 Replies

Php :: Reading RAW Data From A Flash POST Request ( Images )?

Dec 8, 2009

I'm basically interacting with a third party API flash file to send HTTP POST requests to my server. know I'm on somewhat the right path because it requires a crossdomain.xml file, and before I added that part nothing in the POST variables was showing up, however since I added that file there are 4 variables that are set, these POST variables are sent by the application to give me basic information about the file.. but I actually need to read the RAW POST data to actually save the image being sent by the Flash.I'm aware there are 3 ways...$GLOBALS['HTTP_RAW_POST_DATA'] $HTTP_RAW_POST_DATA which is probably the same as the firstfile_get_contents('php://input')For whatever reason, neither of these "work". By "work" I mean they're not being set, when I var dump them I get nothing.

Could it be that there's a setting in php.ini that I need to set, or perhaps the Flash application is truly not sending the actual image? I think it's doing the right thing, because it's a semi popular API and it's used by a couple other sites so I'm pretty sure it's right on their end.

View 1 Replies

Django :: Flash - Iterate Over Chunks() With Request.POST?

Feb 17, 2010

I'm trying to optimize a site I'm building with Django/Flash and am having a problem using Django's iterate over chunks() feature. I'm sending an image from Flash to Django using request.POST data rather than through a form (using request.FILES). The problem I foresee is that if there is large user volume, I could potentially kill memory. But it seems that Django only allows iterating over chunks with request.FILES. Is there a way to:

1) wrap my request.POST data into a request.FILES (thus spoofing Django)

or

2) use chunks() with request.POST data

View 1 Replies

Actionscript 3 :: Send A POST Request To An ASP.NET Asmx Web Service

Aug 24, 2010

When trying to send a POST request to an ASP.NET asmx web service I am seeing (in Charles and Firebug) it go through as a GET. Here is my AS3

[Code]...

This seems to be an issue with flash as it is happening before it even goes to the server. I have uploaded this to a testing server and I still see it come through as a GET.

View 1 Replies

Send Xml Data To The Server Using HttpService Request Thr POST In Flex?

Dec 12, 2009

send xml data to the server using HttpService request thr POST in Flex?

View 1 Replies

Possible For Flash Widget To Send POST Request To An External Domain?

Jan 13, 2011

is it possible for flash widge on site a.com to send POST request to b.com ?If so, couldn't this be quite dangerous ? A user would be performing POST to an unknown host

View 1 Replies

Python :: Retrieve HTTP POST Request Parameters (sent From Flex App)?

Jan 25, 2011

I am sending the parameters from flex application through HTTP POST request to Python/PSP script. I am able to call PSP script from flex app using HTTP POST request, but i am not able to use/retrieve these parameters in Python/PSP

View 1 Replies

Flex :: Send HTTP POST Request With Binary Data In Body

Sep 17, 2009

I'm new to Flex and couldn't figure out yet how to send binary data to the server as the body of a POST request. The HTTPService component doesn't seem to support this. The FileReference doesn't seem to support setting the data via the Flex API.

View 4 Replies

Actionscript :: Post Request From A Flash File Stops Working After Published

Feb 14, 2011

I have a problem with the following code:[code]The problem is that the code is working when I test the scene (ctr+alt+enter in flash), but after I publish it it doesn't work... not sending any request nor redirect.What I want to do is to log in a file on the server what the users typed (related with Related with: Flash actionscript - save a text file on server).

View 1 Replies

ActionScript 1/2 :: "POST" JSON Data In The Body Of A Request With LoadVars?

Mar 10, 2009

Is it possible to "POST" JSON data in the body of a request with LoadVars? I understand LoadVars sends data as name>value pairs. How can I send the data in the body instead?

View 1 Replies

AS2 :: Post JSON Data From Flash With The JSON As The Body Of The Request?

Nov 5, 2010

I'm working on a Flash AS2 application that needs to post JSON data to a web service.In previous projects, I've used LoadVars.send() or LoadVars.sendAndLoad() successfully to manage this:

var send_lv:LoadVars = new LoadVars();
send_lv.data = JSON.stringify({some json object});
var response_lv:LoadVars = new LoadVars();
response_lv.onData = function(rawdata) {

[code]....

In somepage.php, I can grab that JSON data using $_POST['data'].However, on this project, the developer of the web service requires the JSON content to be the BODY of the request (i.e., not a name/value pair). Is this possible with LoadVars?

View 1 Replies

ActionScript 3.0 :: Play Audio File From Tumblr API?

Feb 19, 2011

I've been working with displaying data from the tumblr API and all is pretty good except for some videos [wil have to get in to later] and audio.

Does anyone know a way you can take this data they give you and get it to play the audio file in flash?[code]...

View 1 Replies

Actionscript 3 :: Upload Urlencoded Binary Data To Tumblr?

Sep 13, 2011

I need up upload urlencoded binary data to tumblr.this is what I'm currently trying:

baseString.params = 'data[0]=' + URLEncoding.encode(byte.toString()).replace('~','%257E');

View 1 Replies

Flash :: How To Make A Http Request

Jul 22, 2011

Is it possible to make a simple Http Request using as2 and get the redirected result?xample[URL]

View 1 Replies

Ajax :: Detect If HTTP Request Is From Browser / Flex Asynchronous Request?

Jun 1, 2010

When Flex application make an asynchronus HTTP request, does it add a special header to the request, like some JavaScript framework does? Something that indicates whether this request is an AJAX call/not.I just want my server side code to return different response format, depending on whether the request is made from browser/flex.

View 1 Replies

ActionScript 2.0 :: Flash With Memory - Make A Screensaver With Posibilitys To Make Notes Like 3M Post-it Notes?

Apr 3, 2004

I would like to make a screensaver with posibilitys to make notes like 3M post-it notes, the flash file should "remeber" the input that the user writes. I have the tools to make screensaver in Flash, but how to make such a flash file?

View 3 Replies

ActionScript 3.0 :: FileReference Upload Method Doesn't Make Any Request

Mar 20, 2011

As URLLoader launches requests without any issue (I'm monitoring network and flash activities via FireBug in FF 3.6.13), the FileReference upload method doesn't. The odd thing is that no error is thrown AND (the strangiest) the complete and the progress events are correctly fired while no request has been done, and my php isn't receiving anything !

ActionScript Code:
var file:FileReference = new FileReference();
function mClick(mEvt:MouseEvent):void {

[code]...

View 2 Replies

ActionScript 2.0 :: Make A Screensaver With Posibilitys To Make Notes Like 3M Post-it Notes?

Apr 3, 2004

I would like to make a screensaver with posibilitys to make notes like 3M post-it notes, the flash file should "remeber" the input that the user writes. Is this possibel

I have the tools to make screensaver in Flash, but how to make such a flash file.

View 3 Replies

Actionscript :: Synchronization - Make Several External Calls To Get Various Pieces Of Outside Information In Response To A User Request

Apr 17, 2011

I am unable to produce the kind of synchronization effects I would like to in ActionScript. The issue is that I need to make several external calls to get various pieces of outside information in response to a user request, and the way items will be laid out on the page is dependent on what each of these external calls returns. So, I don't care that all of these calls return asynchronously. However, is there any way to force some amount of synchronization on ActionScript, so that at least calling the method for doing the final layout and placement of items on the page is dependent on all of my calls finishing?

View 1 Replies

ActionScript 3.0 :: Make A Post From Flash To Facebook's Wall

Feb 23, 2011

All I really need is to make a post to the Facebook wall of the user from flash movie.Been trying to find any decent tuts for Flash IDE but everything seems to be for Flex mainly.

View 2 Replies

ActionScript 3.0 :: Make A New Request To The Server If The Seconds Parameter Specifies A Time Outside Of The Currently Buffered Video Data

Jul 14, 2011

when uing netsream.seek(), how can i make a new request to the server if the seconds parameter specifies a time outside of the currently buffered video data. I want to seek unloaded time

View 3 Replies

ActionScript 3.0 :: Make Form In Flash To Send Info To Php By Post / Get?

Jun 30, 2011

How can i make form in flash to send info to php by post or get ?[code]...

View 7 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved